mathematica求矩阵大小(小李Talk每周学点Mathmatica)(1)

分享兴趣,传播快乐,增长见闻,留下美好!亲爱的您,这里是LearningYard学苑。

今天小编为大家带来“每周学点Mathmatica(3)——常用的矩阵命令”,欢迎您的用心访问!本期推文时长大约3分钟,请您耐心阅读。

Share interest, spread happiness, increase knowledge, and leave beautiful. Dear, this is the Learing Yard Academy!

Today, the editor brings the “Learn Mathmatica every week (3) ——Common Matrix Commands ”. Welcome to visit! This tweet usually takes about 3 minutes to read. Please read patiently.

01 矩阵行列式值的计算

先将我们需要计算的矩阵输入到软件,使用的格式如下图,这里输入的是三行三列。

First, input the Matrix we need to calculate into the software. The format is shown in the figure below. Here, three rows and three columns are entered.

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(2)

选中我们输入的两行式子,【Shift Enter】运行一下,会以矩阵的形式呈现,如下图所示:

Select the two line formula we entered, and run Shift Enter to display it in the form of a matrix, as shown in the following figure:

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(3)

选中输出的矩阵,【Shift Enter】运行一下,会得到计算结果,如下图。

Select the output matrix and click Shift Enter to get the calculation result, as shown in the following figure.

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(4)

02 矩阵特征值的计算

先了解一下什么是矩阵特征值,

First, let's understand what the matrix eigenvalue is,

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(5)

将矩阵输入到软件,选中,执行运行,得到结果如下图:

Input the matrix into the software, select it, run it, and get the results as shown in the following figure:

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(6)

然后输入Eigenvalues[L2],运行,得到下图结果。然后选中输出的内容,执行。

Then enter Eigenvalues [L2] and run to get the following results. Then select the output content and execute.

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(7)

执行之后,原来的输出8变成了下一次执行计算9的输入,计算出的矩阵特征值结果如下。

After execution, the original output 8 becomes the input of the next calculation 9. The calculated matrix eigenvalue results are as follows.

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(8)

03 黑塞矩阵的输入

先来简单了解一下什么是黑塞矩阵,

First, let's briefly understand what is Hesse matrix,

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(9)

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(10)

在软件中输入:名称 = D[函数表达式, {{变量}, 2}] // MatrixForm,例如E = D[x^3 y^3, {{x, y}, 2}] // MatrixForm。输入后执行,得到结果。

Enter: name=D [function expression, {{variable}, 2}]//MatrixForm in the software, for example, E=D [x ^ 3 y ^ 3, {{x, y}, 2}]//MatrixForm. Execute after input to get results.

mathematica求矩阵大小(小李Talk每周学点Mathmatica)(11)

END

今天的分享就到这里了,如果您对文章有独特的想法,欢迎给我们留言。让我们相约明天,祝您今天过得开心快乐!

That's all for today's sharing. If you have a unique idea about the article, please leave us a message, and let us meet tomorrow. I wish you a happy day!

参考资料:Deepl翻译、百度

本文由LearningYard学苑整理并发出,如有侵权请在后台留言沟通!

,