跳到主要内容

Matrix Theory - hw5

矩阵函数 etAe^{tA}

import numpy as np
from scipy.linalg import expm

# 定义方阵A
A = np.array([[1, 1], [0, 2]])

# 计算e^A
expA = expm(A)
print("e^A=\n", expA)

# 计算|e^A|
determinant = np.linalg.det(expA)
print("|e^A|=", determinant)