声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2905|回复: 2

[Maple] 请问maple计算为什么得不到数值结果

[复制链接]
发表于 2005-12-17 13:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
请问maple计算为什么得不到数值结果,程序如下:<BR>
<P ><FONT size=3><FONT face="Times New Roman">&gt; </FONT><STRONG><FONT face="Courier New" color=#ff0000>restart;</FONT></STRONG></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">&gt; </FONT><STRONG><FONT face="Courier New" color=#ff0000>a5:=-5*10^(-24):a4:=5*10^(-22):a3:=-2*10^(-20):a2:=4*10^(-19):a1:=-1*10(-18):a0:=-1*10^(-17):</FONT></STRONG></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">&gt; </FONT><STRONG><FONT face="Courier New" color=#ff0000>T:=2:</FONT></STRONG></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">&gt; </FONT><STRONG><FONT face="Courier New" color=#ff0000>y:=int(x*(a5*x^5+a4*x^4+a3*x^3+a2*x^2+a1*x+a0)*exp(-x/T),x=11..50):</FONT></STRONG></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">&gt; </FONT><STRONG><FONT face="Courier New" color=#ff0000>eletronC:=1.60219*10^(-19):electronm:=9.10956*10^(-31):Na:=6.02217*10^23:</FONT></STRONG></FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">&gt; </FONT><STRONG><FONT face="Courier New" color=#ff0000>k:=(8*electronC/(Pi*electronm))^0.5*T^(-1.5)*y*10^(-4)*Na;</FONT></STRONG></FONT></P>
<P ><v:shapetype><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path connecttype="rect" gradientshapeok="t" extrusionok="f"></v:path><lock aspectratio="t" v:ext="edit"></lock></v:shapetype><v:shape><v:imagedata><STRONG><FONT face="Courier New" color=#ff0000 size=3></FONT></STRONG></v:imagedata></v:shape></P>
<P ><FONT size=3><FONT face="Times New Roman">&gt; </FONT><STRONG><FONT face="Courier New" color=#ff0000>evalf(%);</FONT></STRONG></FONT></P>
<P ><v:shape><v:imagedata><STRONG><FONT face="Courier New" color=#ff0000 size=3></FONT></STRONG></v:imagedata></v:shape></P>
<P ><FONT size=3><FONT face="Times New Roman">&gt; </FONT><STRONG><FONT face="Courier New" color=#ff0000>value(%);</FONT></STRONG></FONT></P>
<P ><v:shape><v:imagedata><STRONG><FONT face="Courier New" color=#ff0000 size=3></FONT></STRONG></v:imagedata></v:shape></P>
<P ><FONT face="Times New Roman" size=3>&gt; </FONT></P>
<P ><FONT face="Times New Roman" size=3>&gt; <BR>运行结果却非数值</FONT></P>
回复
分享到:

使用道具 举报

发表于 2005-12-17 14:17 | 显示全部楼层

回复:(mathtype)请问maple计算为什么得不到数值结果...

<P>把electronC换一个变量,或者将c改成小写的就行</P>
[此贴子已经被作者于2005-12-17 14:28:04编辑过]

发表于 2006-2-3 11:50 | 显示全部楼层
-0.5033682276e36*electronC^.5
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-6-11 08:02 , Processed in 0.050216 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表