Date: Tue 03 Nov 92 11:08:05 From: ronis AT ronis DOT chem DOT mcgill DOT ca (David M. Ronis) To: gpk AT physics DOT att DOT com Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Mea Culpa, But... Sorry, In posting the tanh bug, I neglected to modify the sinh code (other than the name of the function). The correct version follows: double tanh(double x) { const double epos,eneg; if(x>=0.0){ epos=exp(x); eneg=1.0/epos; } else { eneg=exp(-x); epos=1.0/eneg; } return (epos-eneg)/(epos+eneg); } Sorry for any inconvenience. David Ronis