Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- import sympy as sp
- import numpy as np
- import matplotlib.pyplot as plt
- x,y,z = sp.symbols('x y z')
- n=1 # order of derivative
- def f(x):
- g=z**(-z)
- h=sp.diff(g,z,n)
- q=h.subs(z,x)
- return q
- x1=np.arange(0,5,0.5)
- plt.plot(x1,f(x1))
- plt.show()
Add Comment
Please, Sign In to add comment