Binding stack exhausted.



On 2013-04-26, Pepe Sanchez <jose.sanchez at uv.es> wrote:

> (%i    )  pol2: 1+a1*x+a2*x^2+a3*x^3+a4*x^4;    MSfun: -De*(pol2)*exp(-a1*x);
>
> (%i    )  lsquares_estimates(M2, [x,y], y=MSfun , [De,a1,a2,a3,a4], initial=[1, 1, 1, 1, 1] ,tol=1e-8);

> Binding stack guard page temporarily disabled: proceed with caution
> Maxima encountered a Lisp error:
>  Binding stack exhausted.

Well, lsquares_estimates tries to find an exact minimum of the mean
squared error, and then, failing that, goes on to look for an
approximate minimum. My guess is that the attempt to find an exact
minimum causes the error. Maybe it's a bug in 'solve' or there are some
expressions that aren't simplified.

My advice is to call lsquares_estimates_approximate to omit the attempt
to find an exact minimum. Just guessing -- if you tell us what is M2,
I could be more specific.

best

Robert Dodier