Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This seems to work well for me:

import scipy
import scipy.interpolate
# create x,y coordinates
x,y=zip(*[(i,i^3-i^3*sin(i)) for i in srange(0,10,step=0.1)])
f = scipy.interpolate.interp1d(x, y, kind='cubic')
f(1.0)

Maybe your worksheet timed out or something?

This seems to work well for me:

import scipy
import scipy.interpolate
# create x,y coordinates
x,y=zip(*[(i,i^3-i^3*sin(i)) for i in srange(0,10,step=0.1)])
f = scipy.interpolate.interp1d(x, y, kind='cubic')
f(1.0)

Maybe As DSM says, you misspelled the scipy "interpolate" module, so maybe that was the problem? Or maybe your worksheet timed out or something?out?