Would you please tell me how can I solve this problem and how can I optimum my program?
"Steven Lord" <firstname.lastname@example.org> wrote in message <email@example.com>... > > "Walter Roberson" <firstname.lastname@example.org> wrote in message > news:email@example.com... > > 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 > firstname.lastname@example.org > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ >