Bug in tanh?



"Richard Fateman" <fateman at cs.berkeley.edu> writes:

>  tanh(1.0d3)
>   gives a stack overflow error in wxmaxima 0.7.1
>
> The answer should be 1.0d0.

Using the latest cvs Maxima compiled with sbcl, but not using
wxmaxima, I get 

(%i1) tanh(1.0d3);
(%o1) 				      1.0

> The computation of tanh(x) by using exp(x) is a bad idea.

What's the best way of computing it?

Jay