scipy.linalg.tanm¶
- scipy.linalg.tanm(A)[源代码]¶
计算矩阵切线。
此例程使用exPM计算矩阵指数。
- 参数
- A(n,N)类数组
输入数组。
- 退货
- tanm(N,N)ndarray
的矩阵切线 A
示例
>>> from scipy.linalg import tanm, sinm, cosm >>> a = np.array([[1.0, 3.0], [1.0, 4.0]]) >>> t = tanm(a) >>> t array([[ -2.00876993, -8.41880636], [ -2.80626879, -10.42757629]])
验证tanm(A)=SINM(A).dot(inv(cosm(A)
>>> s = sinm(a) >>> c = cosm(a) >>> s.dot(np.linalg.inv(c)) array([[ -2.00876993, -8.41880636], [ -2.80626879, -10.42757629]])