分享兴趣,传播快乐,增长见闻,留下美好。
亲爱的您,
这里是LearingYard学苑!
今天小编为大家带来mathematica学习之括号、变量的使用,如何输入矩阵.
欢迎您的用心访问!
本期推文阅读时长大约5分钟,请您耐心阅读。
Share interest, spread happiness,
increase knowledge, and leave beautiful.
Dear you.
This is the LearingYard Academy!
Today, the editor brings Mathematica learning of polynomial computation and function derivation.
Welcome your visit!
The reading time of this tweet is about 5 minutes, please read it with patience.
Mathematica作为科学计算软件,支持数值符号计算,支持与图形系统、编程语言、文本系统等程序连接,是最受欢迎的数学软件之一。本期推文将介绍括号、变量的使用,以及如何输入矩阵。感谢您的观看!
Mathematica is one of the most popular mathematical programs as a scientific computing software that supports numerical symbolic computation and links to programs such as graphing systems, programming languages, and text systems. This tweet introduces the use of parentheses and variables, and how to enter matrices. Thanks for watching!
1. 括号的使用
1.1圆括号()
Mathematica对圆括号的计算具有优先级别。
1. Use of parentheses
1.1 Parentheses ()
Mathematica has a priority level for calculating round brackets.
1.2方括号
在函数中,使用方括号是将变量、内部函数括起来,内部函数不能用圆括号括起来使用。
1.2 Square brackets
In the function, the use of square brackets is to enclose variables, internal functions, internal functions can not be enclosed in parentheses to use.
1.3大括号或集合括号
大括号或集合括号在存放集合元素的时候使用。
1.3 Curly brackets or set brackets
Curly brackets or set brackets are used when storing collection elements.
1.4双方括号
双方括号是读取集合元素或者表达式的某一个元素。
1.4 Double square brackets
A double square bracket is an element of a collection or an expression that reads a certain element.
2.1变量的命名
变量的命名可以由英文字母,数字,下划线组成。命名变量的时候应该遵循以下原则:1.第一个字母不能是数字 2.变量名不能与内部函数名称相同3.注意字母大小写的区分,clea和Clea不是一个变量。
2.1 Naming of variables
The naming of variables can consist of English letters, numbers, and underscores. The following principles should be followed when naming variables: 1. the first letter cannot be a number 2. the variable name cannot be the same as the internal function name 3. pay attention to the letter case distinction, clea and Clea are not a variable.
2.2变量的赋值
变量赋值遵循的将右边的式子赋值到左边,在mathematica中一旦给变量赋值,这个值一直保留,即使新建文件也会保留,除非要改变赋值或者关机,关机可以自动清除,下面演示赋值的方法,分别是对a赋值3,对a和c同时赋值3,清除变量a。
2.2 Assignment of variables
Once a variable is assigned a value in mathematica, the value will be kept even if a new file is created, unless the assignment is changed or the machine is shut down, which can be done automatically.
3.1输入单位矩阵
输入单位矩阵的格式为Identitymatrix[n] ,n代表单位矩阵的阶级。
3.1 Input Unit Matrix
The format of the input unit matrix is Identitymatrix[n] , and n represents the order of the unit matrix.
3.2制定对角线输入矩阵
DiagonalMatrix[{a,b,c,d,e,f,...}],a,b,c,d,e,f为制定对角线的数字。
3.2 Formulate the diagonal input matrix
DiagonalMatrix[{a,b,c,d,e,f,...}] , a,b,c,d,e,f are the numbers of the diagonal matrix.
今天的分享就到这里了。
如果您对今天的文章有独特的想法,
欢迎给我们留言,
让我们相约明天。
祝您今天过得开心快乐!
That's it for today's sharing.
If you have a unique idea about today’s article,
welcome to leave us a message,
let us meet tomorrow.
I wish you a happy day today!
参考资料:谷歌翻译
本文由LearningYard学苑整理发出,如有侵权请在后台留言!
LearningYard学苑
文字 | clear
排版| clear
审核| 任务达人