scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
sinm(A)

This routine uses expm to compute the matrix exponentials.

Parameters

A : (N, N) array_like

Input array.

Returns

sinm : (N, N) ndarray

Matrix sine of A

Compute the matrix sine.

Examples

>>> from scipy.linalg import expm, sinm, cosm

Euler's identity (exp(i*theta) = cos(theta) + i*sin(theta)) applied to a matrix:

>>> a = np.array([[1.0, 2.0], [-1.0, 3.0]])
... expm(1j*a) array([[ 0.42645930+1.89217551j, -2.13721484-0.97811252j], [ 1.06860742+0.48905626j, -1.71075555+0.91406299j]])
>>> cosm(a) + 1j*sinm(a)
array([[ 0.42645930+1.89217551j, -2.13721484-0.97811252j],
       [ 1.06860742+0.48905626j, -1.71075555+0.91406299j]])
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.linalg._matfuncs.sinm scipy.linalg._matfuncs.cosm scipy.linalg._matfuncs.tanm scipy.linalg._matfuncs.expm

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/linalg/_matfuncs.py#297
type: <class 'function'>
Commit: