Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import matplotlib as mpl
- import numpy as np
- from math import *
- x = np.linspace(-1, 1, 1000)
- y1 = [sinh(xx) for xx in x]
- plt.plot(x, y1, label='sinh')
- y2 = [cosh(xx) for xx in x]
- plt.plot(x, y2, label='cosh')
- y3 = [tanh(xx) for xx in x]
- plt.plot(x, y3, label='tanh')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement