[求助]含有符号函数数值积分问题
求助:我的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 编辑 ]
回复:(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 ==> maple<br>Error, integer too large in context<br><br>Error in ==> C:\MATLAB6p5\toolbox\symbolic\digits.m<br>On line 18 ==> r = eval(maple('Digits;'));<br><br>Error in ==> C:\MATLAB6p5\toolbox\symbolic\@sym\double.m<br>On line 16 ==> d = digits;<br><br>Error in ==> C:\MATLAB6p5\toolbox\symbolic\zeta.m<br>On line 10 ==> Z = double(zeta(sym(n)));<br><br>Error in ==> C:\MATLAB6p5\work\sven_aberg\test.m<br>On line 9 ==> 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编辑过]
万分感谢!!1
谢谢suffer!! cang 同遇到这个问题,可是suffer的回复看不大懂,求解释。唔,这么多年前的帖子不知道有没被封掉....
页:
[1]