p = log( err( end ) / err( end - 1 ) ) / log( h( end ) / h( end - 1 ) )
% p = 2.0003