from pylab import *
def f(x):
return sin(x)
def deriv(x,dx=0.005):
df = f(x+dx/2)-f(x-dx/2)
return df/dx
vederiv = vetorize(deriv)
x = linspae(0, 2*pi, 100)
y = vederiv(x)
plot(x,y,'+')
plot(x,os(x))
show()
must be python programming. consider function f(x) = sin(x) in the range of 0to pi. create...