声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 4622|回复: 4

[编程技巧] [求助]含有符号函数数值积分问题

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

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

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

x
求助:
我的matlab程序,其中一个子程序含有符号函数并进行数值积分,为啥迭代几步后就出错:
??? Error using ==> sym.maple
Error, (in type/array) integer too large in context
Error in ==> sym.mtimes at 28
X = maple(A,'&*',B);....
已经困扰好久了,谁能帮帮我呀,不胜感激!!
[此贴子已经被suffer于2005-12-8 20:49:37编辑过]


[ 本帖最后由 eight 于 2007-1-25 12:24 编辑 ]
回复
分享到:

使用道具 举报

发表于 2005-12-8 20:52 | 显示全部楼层

回复:(hxcluck)[求助]含有符号函数数值积分问题

<H3>Subject:</H3>
<P>Why do I receive the error message "Error, integer too large in context" while using the Symbolic Math Toolbox? </P>
<H3>Problem Description:</H3>
<P><!--prob_desc_begin-->The following example produces an error:<br><br><CODE>I=sqrt(-1);<br>j=0;<br>for E=1000:0.01:1100,<br>j=j+1;<br>f(j)=zeta(0.5+I*E);<br>end<br></CODE><br>The error message I receive is:<br><br><SAMP>??? Error using ==&gt; maple<br>Error, integer too large in context<br><br>Error in ==&gt; C:\MATLAB6p5\toolbox\symbolic\digits.m<br>On line 18 ==&gt; r = eval(maple('Digits;'));<br><br>Error in ==&gt; C:\MATLAB6p5\toolbox\symbolic\@sym\double.m<br>On line 16 ==&gt; d = digits;<br><br>Error in ==&gt; C:\MATLAB6p5\toolbox\symbolic\zeta.m<br>On line 10 ==&gt; Z = double(zeta(sym(n)));<br><br>Error in ==&gt; C:\MATLAB6p5\work\sven_aberg\test.m<br>On line 9 ==&gt; f(j)=zeta(0.5+i*E); <br></SAMP></P>
<P>
<TABLE>

<TR>
<TD width=550>
<DIV>
<H3>Solution:</H3>
<P>Our development staff has been notified and is currently looking into addressing this problem in a future release of the Symbolic Math Toolbox. <br><br>This may be a problem with the way memory management is performed by Maple. At present, the only potential workaround is to wrap your call to a symbolic calculation that operates on numbers with large numbers of digits inside a TRY/CATCH block and clear the Maple function using the following commands:<br><br>For Symbolic Math 2.1.3 (R13) and earlier:<br><CODE>maple clear<br><br>% or<br><br>maple restart<br></CODE><br>For Symbolic Math 3.0 (R13+) and later:<br><CODE>clear maplemex<br></CODE></P></DIV></TD></TR></TABLE></P>
[此贴子已经被作者于2005-12-8 20:53:52编辑过]

 楼主| 发表于 2005-12-9 17:37 | 显示全部楼层

万分感谢!!1

谢谢suffer!!
发表于 2006-6-12 08:53 | 显示全部楼层
cang
发表于 2012-5-14 15:16 | 显示全部楼层
同遇到这个问题,可是suffer的回复看不大懂,求解释。唔,这么多年前的帖子不知道有没被封掉....
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-11-17 22:45 , Processed in 0.065747 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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