Advertisement
UF6

Problem 4 Final

UF6
May 8th, 2016
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import matplotlib as mpl
  3. import numpy as np
  4. from math import *
  5. x = np.linspace(-1, 1, 1000)
  6. y1 = [sinh(xx) for xx in x]
  7. plt.plot(x, y1, label='sinh')
  8. y2 = [cosh(xx) for xx in x]
  9. plt.plot(x, y2, label='cosh')
  10. y3 = [tanh(xx) for xx in x]
  11. plt.plot(x, y3, label='tanh')
  12. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement