fork download
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. a = 0.37
  4. b = 0.37
  5. n = 2.5
  6. m = 3
  7. x = np.linspace(1,5)
  8. y = a*x**n
  9. z = b*x**m
  10. plt.plot(x,y)
  11. plt.plot(x,z)
  12. plt.title("y=0.37*x**2.5 z=0.37*x**3")
  13. plt.xlabel("x")
  14. plt.ylabel("y z")
  15. plt.grid()
  16. plt.show()
  17.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty