Mathematica概述

May 5, 2011 at 6:22 pm (Mathematica)

加法: x+y
減法: x-y
乘法: [1] x*y  [2]x y (p.s 方法2是’空格’)
除法: x/y
乘冪: x^y
輸入完算式後,按shift+enter就會執行計算。

ex:
In[1]:= 3^50
Out[1] = 717897987691852588770249
其中  In[1]:=  和 Out[1] = 是程式自己增加的。
’%’ 是用來代表上一次的運算結果。
‘N[%]‘ 會把上一次運算所得的結果轉成近似值且為實數。
‘%//N’ 同 ’N[%]‘

輸入’123’時為整數
輸入’123.’時為實數

’N[x]’: 把x轉成近似實數
‘N[x, n]‘: 把x轉成近似實數,精準度為小數後n位

Pi: 圓週率
E:自然數 2.71828…

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.