Figure 7.3:

Hyperbolic trigonometric functions sinh, cosh, tanh.

Figure 7.3

Code for Figure 7.3

Text of the GNU GPL.

main.py


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Converted from hyperbolic.m - hyperbolic function plots
import numpy as np
from misc import save_ascii

npts = 100
x    = np.linspace(-2., 2., npts).reshape(-1, 1)
y    = np.column_stack([np.sinh(x), np.cosh(x), np.tanh(x)])
table = np.column_stack([x, y])

save_ascii('hyperbolic.dat', table)