Mathematica入門教程之Mathematica的基本語(yǔ)法特征

In[2]:=
Out[2]:=
2.定積分
計(jì)算定積分的命令和計(jì)算不定積分是同一個(gè)Integrate函數(shù),在計(jì)算定積分時(shí),除了要給出變量外還要給出積分的上下限。當(dāng)定積分算不出準(zhǔn)確結(jié)果時(shí),用N[%]命令總能得到其數(shù)值解.Nintegrate也是計(jì)算定積分的函數(shù),其使用方法和形式和Integrate函數(shù)相同.用Integrate函數(shù)計(jì)算定積分得到的是準(zhǔn)確解,Nintegrate函數(shù)計(jì)算定積分得到的是近似數(shù)值解.計(jì)算多重積分時(shí),第一個(gè)自變量相應(yīng)于最外層積分放在最后計(jì)算.
Integrate[f,{x,a,b}] 計(jì)算定積分
NIntegrate[f,{x,a,b}] 計(jì)算定積分
Integrate[f,{x,a,b},{y,c,d}] 計(jì)算定積分
NIntegrate[f,{x,a,b},{y,c,d}] 計(jì)算定積分
In[1]:=
Out[1]:=
In[2]:=
Out[2]:=
In[3]:=
Out[3]:=
. 冪級(jí)數(shù)
冪級(jí)數(shù)展開函數(shù)Series的一般形式:
Series[expr,{x,x0,n}] 將expr在x=x0點(diǎn)展開到n階的級(jí)數(shù)
Series[expr,{x,x0,n},{y,y0,m}] 先對(duì)y展開到m階再對(duì)x展開n階冪級(jí)數(shù)
用Series展開后,展開項(xiàng)中含有截?cái)嗾`差
In[1]:=
Out[1]:=
In[2]:=

評(píng)論