分享興趣、傳播快樂、增長見聞、留下美好,大家好,這裡是LearningYard學苑,今天小編為大家帶來系列文章: 一看就會的圖文教程-mathematica(1)。
Share interest, spread happiness, increase knowledge, and stay good. Hello, everyone. This is LearningYard Academy. Today, the editor brings you a series of articles: A picture-text tutorial-Mathematica (1).
今日内容一覽表Today's content listMathematica中的普通數字的加減乘除計算可以直接輸入,按下“shift enter”即可輸出結果,此處不做贅述。
需要特别說明的是:mathematica中不會對結果進行化簡,所以在進行多項式的加減乘除計算的時候,可以調用以下函數對結果進行化簡。
The calculation of addition, subtraction, multiplication, and division of ordinary numbers in Mathematica can be directly input, and the result can be output by pressing "shift enter", which will not be repeated here.
It should be noted that the result is not simplified in mathematica, so when adding, subtracting, multiplying and dividing a polynomial, you can call the following function to simplify the result.
方式一:合并同類項-調用Collect[(需要化簡的表達式),x(合并關于哪個同類項)]。Method 1: Combine similar items-call Collect[(the expression that needs to be simplified), x (which similar items are combined about)].案例1
使用格式Use format:Identitymatrix[a] // MatrixForm
a表示幾階單位矩陣,MatrixForm函數表示輸出為矩陣格式。(a represents the order of the unit matrix, and the MatrixForm function represents the output as a matrix format.)
案例9
使用格式Use format:DiagonalMatrix[{a,b,c,d,e,f,...}]。
a,b,c,d,e,f,...為指定的對角線元素。(a,b,c,d,e,f,... are the specified diagonal elements.)
案例10-1
使用格式Use format:DiagonalMatrix[{a,b,c,d,e,f,...},x]。
x為正,向右上方移動;x為負,向左下方移動。(If x is positive, it moves to the upper right; if x is negative, it moves to the lower left.)
案例10-2
使用格式Use format:Det[矩陣的表達式]
案例11
使用格式Use format:Eigenvalues[矩陣的表達式]
案例12
使用格式Use format:Tr[矩陣的表達式]
案例13
海塞矩陣是一個多元函數的二階偏導數構成的方陣,一般利用海塞矩陣判定多元函數的極值問題。The Hessian matrix is a square matrix composed of the second-order partial derivatives of a multivariate function. The Hessian matrix is generally used to determine the extreme value of a multivariate function.
使用格式Use format:D[f(x,y),{{x,y},2}]
案例14
雅可比矩陣是一階偏導數以一定方式排列成的矩陣。它體現了一個可微方程與給出點的最優線性逼近。The Jacobian matrix is a matrix in which the first-order partial derivatives are arranged in a certain way. It embodies the optimal linear approximation of a differentiable equation to a given point..
使用格式Use format:D[f(x,y),{{x,y}}]
案例15
使用格式Use format:M[[i,j]],提取第i行,第j列。
案例15-1 不正确輸入命令Input the command incorrectly.特别說明:不同于之前矩陣的輸入,在進行提取矩陣中元素的操作時,一定要另起一行,單獨使用一次MatricForm函數,先将矩陣表示出來,再輸入提取命令。Special note: Different from the input of the previous matrix, when extracting elements in the matrix, you must start a new line and use the MatricForm function once to express the matrix first, and then enter the extraction command.
由于篇幅有限,今天的分享就到這裡啦!
參考資料:網絡。
翻譯:Google翻譯。
本文由LearningYard學苑整理并發出,部分資料來自網絡,若有侵權請聯系!
如果您對今天的文章有獨特的想法,歡迎給我們留言,讓我們相約明天,祝您今天過得開心快樂!
,更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!