Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. %matplotlib inline
  2. import numpy as np
  3. import matplotlib.pyplot as plt
  4.  
  5. num_points = 100
  6. x = np.linspace(-4*np.pi, 4*np.pi, num=num_points)
  7. f = np.exp(x/10)*np.sin(x)*np.cos(x)
  8.  
  9. plt.plot(x, f)
  10. plt.xlabel('$x$')
  11. plt.ylabel('$\f(x)$')
  12. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement