Well, I tried running Maxima directly in a command window. I gave the commands and got exactly the same reply. So I don't think Euler can be blamed for it. Did you try these commands to see what happens on your system?
I don't know how to determine if the integral is too complicated for Maxima. (Maybe it is, if it always gives errors, but a more informative error message would be nice.) What I do know is (1) Mathematica handles it and gives symbolic results; (2) Mathematica is too expensive for me.
Any other ideas?
Thanks,
Bob
> Date: Wed, 12 Mar 2008 18:20:28 -0400> From: HP > > dv2500t, Vista Ultimate (x64). I skimmed the Maxima help files and > > learned how to pipe commands to Maxima from Euler. Then from Euler I > > gave the commands> > > > : f(x):=log(2-cos(x)+sqrt(3+cos(x)*(cos(x)-4))) $> > : > > r(n,p):=(1/%pi)*integrate((1-exp(-abs(n)*f(x))*cos(p*x))/sinh(f(x)),x,0,%pi) > > $> > : r(1,3) ;> > > > expecting to see the reply 46/(3*%pi) - 4 but instead I got the reply,> > > > Maxima encountered a Lisp error:> > > > Error in PROGN [or a callee]: Bind stack overflow.> > > > Automatically continuing.> > To reenable the Lisp debugger set *debugger-hook* to nil.> > > > Can anyone tell me if I have done something wrong to produce this result?> > I don't know anything about Euler, but I suspect you're not handling the > interaction with Maxima correctly. Maxima is asking a question and > unless you handle that it's not going to work.> > Even if you did handle that, I'm not sure maxima knows how to evaluate > that integral. That's a pretty complicated integrand with exp(f(x)) and > sinh(f(x)).> > Ray