Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Error, (in int) integer too large in context
Replies: 3   Last Post: Mar 26, 2010 7:42 AM

 Messages: [ Previous | Next ]
 naser Posts: 61 Registered: 3/20/09
Re: Error, (in int) integer too large in context
Posted: Mar 26, 2010 7:42 AM

Would you please tell me how can I solve this problem and how can I optimum my program?

Best regards

"Steven Lord" <slord@mathworks.com> wrote in message <hoakh1\$s41\$1@fred.mathworks.com>...
>
> "Walter Roberson" <roberson@hushmail.com> wrote in message
> news:hoa992\$7tj\$1@canopus.cc.umanitoba.ca...

> > naser wrote:
> >> Hello everyone,
> >> I wrote a program for calculate of natural frequency of a cantilever beam
> >> with Rayleigh-Ritz method. This Program works with Chebychev Polynomial.
> >> But when I run this program, it has an error. Would you please help me
> >> how can I solve this problem?
> >> Error:
> >> ??? Error using ==> sym.maple
> >> Error, (in int) integer too large in context

> >
> > I haven't analyzed your code to see how big the numbers get, but generally
> > speaking, Maple has a limit of about 10^(10^9) .
> >
> > I do remember seeing "integer too large in context" before while using
> > smaller numbers... Ah yes, let's take a closer look at the error:
> >

> > > ??? Error using ==> sym.maple
> > > Error, (in int) integer too large in context
> > > Error in ==> sym.int at 39
> > > r = reshape(maple('map','int',f(:),x),size(f));

> >
> > So the error is being generated by Matlab's reshape(), not by Maple, and
> > it is basically saying that reshape cannot handle a matrix that large.

>
> No. Notice that there's a call to MAPLE inside that call to RESHAPE, and
> from the first line of the error message we see that it is that call, not
> the RESHAPE, that errors. MATLAB never gets to the point where it calls
> RESHAPE on the symbolic result from the map function.
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
>

Date Subject Author
3/23/10 naser
3/23/10 Walter Roberson
3/23/10 Steven Lord
3/26/10 naser