scipy.linalg.
sinm#
- scipy.linalg.sinm(A)[Quelle]#
Berechnet den Matrixsinus.
Diese Routine verwendet expm, um die Matrix-Exponentiale zu berechnen.
Die Dokumentation wurde unter der Annahme verfasst, dass die Array-Argumente bestimmte „Kern“-Formen haben. Array-Argumente dieser Funktion können jedoch zusätzliche „Batch“-Dimensionen vorangestellt haben. In diesem Fall wird das Array als Stapel von niedrigdimensionalen Schnitten behandelt; siehe Gestapelte lineare Operationen für Details.
- Parameter:
- A(N, N) array_like
Eingabearray.
- Rückgabe:
- sinm(N, N) ndarray
Matrixsinus von A
Beispiele
>>> import numpy as np >>> from scipy.linalg import expm, sinm, cosm
Eulersche Identität (exp(i*theta) = cos(theta) + i*sin(theta)) angewendet auf eine 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]])