Processing math: 100%

【解析】双曲線関数の性質2

双曲線関数

\begin{align} \sinh x= \frac{e^{x}-e^{-x}}{2}\\ \cosh x= \frac{e^{x}+e^{-x}}{2} \end{align}

について

\begin{align} \sinh x + \cosh x &=e^x \\ \cosh x – \sinh x &=e^{-x}\\ \end{align}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import numpy as np
import matplotlib.pyplot as plt
 
theta = np.arange(-2 * np.pi, 2 * np.pi, 0.01)
y1 = (np.e ** theta - np.e ** (-theta)) / 2
y2 = (np.e ** theta + np.e ** (-theta)) / 2
 
plt.plot(theta, y2-y1)
 
plt.grid()
plt.xlim([-4, 4])
plt.ylim([-6, 6])
plt.show()
 
plt.plot(theta, np.e ** (-theta))
plt.grid()
plt.xlim([-4, 4])
plt.ylim([-6, 6])
plt.show()

コメント

タイトルとURLをコピーしました