Guest User

Untitled

a guest
May 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import math
  2. import sympy as sp
  3. import numpy as np
  4. import matplotlib.pyplot as plt
  5. x,y,z = sp.symbols('x y z')
  6.  
  7. n=1 # order of derivative
  8. def f(x):
  9. g=z**(-z)
  10. h=sp.diff(g,z,n)
  11. q=h.subs(z,x)
  12. return q
  13.  
  14. x1=np.arange(0,5,0.5)
  15. plt.plot(x1,f(x1))
  16. plt.show()
Add Comment
Please, Sign In to add comment