New Maxima user has problem



Bob Baker wrote:
> Yesterday I downloaded and installed Euler/Maxima on my computer (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