scipy.linalg.

sinhm#

scipy.linalg.sinhm(A)[source]#

计算双曲矩阵正弦。

此例程使用 expm 计算矩阵指数。

参数:
A(N, N) array_like

输入数组。

返回值:
sinhm(N, N) ndarray

A 的双曲矩阵正弦

示例

>>> import numpy as np
>>> from scipy.linalg import tanhm, sinhm, coshm
>>> a = np.array([[1.0, 3.0], [1.0, 4.0]])
>>> s = sinhm(a)
>>> s
array([[ 10.57300653,  39.28826594],
       [ 13.09608865,  49.86127247]])

验证 tanhm(a) = sinhm(a).dot(inv(coshm(a)))

>>> t = tanhm(a)
>>> c = coshm(a)
>>> t - s.dot(np.linalg.inv(c))
array([[  2.72004641e-15,   4.55191440e-15],
       [  0.00000000e+00,  -5.55111512e-16]])