📄 第一节 mathematica快速入门.htm
字号:
Mathematica 允许完成复数运算,如:</font></span></b></SPAN></p>
<p class="MsoNormal" style="text-indent: 17.95pt; line-height: 200%" align="left"><span lang="EN-US"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="宋体">In[7]:=(2+3</font></span></b></span><span lang="EN-US"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="Times New Roman">I</font></span></b></span><span lang="EN-US"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="宋体">)+(5-6</font></span></b></span><span lang="EN-US"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="Times New Roman">I</font></span></b></span><span lang="EN-US"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="宋体">)</font></span></b></span></p>
<p class="MsoNormal" style="text-indent: 17.95pt; line-height: 200%" align="left"><span lang="EN-US"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="宋体">Out[7]=7-3</font><font size="4" face="Times New Roman">I</font></span></b></span></p>
<p class="MsoNormal" style="text-indent: 17.95pt; line-height: 200%" align="left"><span lang="EN-US"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="宋体">In[8]:=(2+3</font><font size="4" face="Times New Roman">I</font><font size="4" face="宋体">)*(5-6</font><font size="4" face="Times New Roman">I</font><font size="4" face="宋体">)</font></span></b></span></p>
<p class="MsoNormal" style="text-indent: 17.95pt; line-height: 200%" align="left"><span lang="EN-US"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="宋体">Out[8]=28+3</font><font size="4" face="Times New Roman">I</font></span></b></span></p>
<p class="MsoNormal" style="text-indent: 17.95pt; line-height: 200%" align="left"> </p>
<p align="left" class="MsoNormal" style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="宋体">这里</font></span></b></SPAN><span lang="EN-US"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="Times New Roman">I</font></span></b></span><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><span style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><font size="4" face="宋体">是虚数单位必须大写。</font></span></b></SPAN>
<P align=left class=MsoNormal style="line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><font size="4" face="楷体_GB2312"> <O:P>
</O:P></font></b></SPAN></P>
<P align=left class=MsoNormal style="line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><font size="4" face="楷体_GB2312"><font color="#FF0000">1.
算术运算符<O:P> </font> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">+ - * /^<SPAN
style="mso-spacerun: yes">
</SPAN>加减乘除指数(乘也可用空格或在不相混淆的前提下省去不写)<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><b><font face="楷体_GB2312"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt; mso-spacerun: yes"><font size="4"> </font></SPAN><SPAN
lang=EN-US><font size="4"> </font></SPAN><font size="4"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">expr<SPAN
style="mso-spacerun: yes">
</SPAN>计算expr的值,</SPAN>其中<SPAN
lang=EN-US>expr为表达式。</SPAN><SPAN lang=EN-US
style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><O:P>
</O:P></SPAN></font></font></b></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">N[expr]<SPAN
style="mso-spacerun: yes">
</SPAN>计算expr的近似值,有效位一般为6位<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Expr//N<SPAN
style="mso-spacerun: yes">
</SPAN>与N[expr]等价<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">N[expr, n]<SPAN
style="mso-spacerun: yes">
</SPAN>计算expr的近似值,有效位为n位<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal style="line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><font size="4" face="楷体_GB2312"><font color="#FF0000">2.
数学函数<O:P> </font> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Sqrt[x]<SPAN
style="mso-spacerun: yes">
</SPAN>x开方<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Exp[x]<SPAN
style="mso-spacerun: yes">
</SPAN>e的x方<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Log[x]<SPAN
style="mso-spacerun: yes">
</SPAN>x的自然对数<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Log[b,x]<SPAN
style="mso-spacerun: yes">
</SPAN>以b为底, x的对数<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Abs[x]<SPAN
style="mso-spacerun: yes">
</SPAN>|x|(x为复数时指模)<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Round[x]<SPAN
style="mso-spacerun: yes">
</SPAN>离x最近的整数<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Ceiling[x]<SPAN
style="mso-spacerun: yes">
</SPAN>大于等于x的最小整数<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">x+Iy<SPAN
style="mso-spacerun: yes">
</SPAN>复数x+iy<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Re[z]<SPAN
style="mso-spacerun: yes">
</SPAN>复数z的实部<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Im[z]<SPAN
style="mso-spacerun: yes">
</SPAN>复数z的虚部<O:P> </O:P></font></b></SPAN></P>
<P align=left class=MsoNormal
style="text-indent: 17.95pt; line-height: 200%"><SPAN lang=EN-US
style="mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"><b><SPAN
style="mso-spacerun: yes"><font size="4" face="楷体_GB2312"> </font> </SPAN><font size="4" face="楷体_GB2312">Arg[z]<SPAN
style="mso-spacerun: yes">
</SPAN>复数z的辐角<O:P> </O:P></font></b></SPAN></P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -