浙江师范大学论坛's Archiver

异度空间 发表于 2007-11-6 07:55

多元函数微分方程的求解程序|定积分的近似计算程序语言

Mathematica 2.0或以上版本

例1.函数 .

解 In[ ]:=Plot3D[x Sin[y]+yE^x,{x,-2,2},{y,-2,2},Plotpoints->30,Lighting->True]

In[ ]:=ContourPlot[x Sin[y]+yE^x,{x,-2,2},{y,-2,2},PlotRange->{0,0}]

In[ ]:=ContourPlot[x Sin[y]+yE^x,{x,-2,2},{y,-2,2},PlotRange->{-1,1}]

In[ ]:=y=f[x]

In[ ]:=D[x Sin[y]+yE^x= =0,x]

In[ ]:=Solve[%,f [x]]

In[ ]:= f [x_ ]:=-(Sin[y]+yE^x)/(e^x+xCOS[Y])

In[ ]:=x=0

In[ ]:=Solve[x Sin[y]+yE^x= =0,y]

In[ ]:=f[0]=0

In[ ]:= f [0]





例2.求定积分 .

解 定义函数和式(取右端点),计算和式的数值,输入下语句

t[n_ ]=Nsum[Exp[i/n]/n,{I,1,n}]

t[100]

t[500]

t[1000]

t[5000]

t[10000]

t[50000]

t[100000]

t[500000]

页: [1]

网站web安全
检测认证
公共信息网络
安全备案
电子公告服务
备案网站
信息网络安全
报警服务
网络不良信息
举报中心

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.