def krogh_interpolate(xi, yi, x, der=0, axis=0):
 P = KroghInterpolator(xi, yi, axis=axis)
 if (der == 0):
  return P(x)
 elif _isscalar(der):
  return P.derivative(x, der=der)
 else:
  return P.derivatives(x, der=(np.amax(der) + 1))[der]

def krogh_interpolate ( xi , yi , x , der = 0 , axis = 0 ) : P = KroghInterpolator ( xi , yi , axis = axis ) if ( der == 0 ) : return P ( x ) elif _isscalar ( der ) : return P . derivative ( x , der = der ) else : return P . derivatives ( x , der = ( np . amax ( der ) + 1 ) ) [ der ]
convenience function for polynomial interpolation .