MathGroup Archive 1991

[Date Index] [Thread Index] [Author Index]

Search the Archive

Bug in Tanh[x]


Someone must have found this bug previously, but there is
a nasty bug in Tanh[x] (in version 1.* on a NeXT).

Just try 

Plot[Tanh[x],{x,-3,3}]

to _see_ what I mean. (I always though tanh(x) was continuous :-)

Fortunately, its easy to write your own "tanh[x]":

tanh[x_] := (Exp[x] - Exp[-x])/(Exp[x] + Exp[-x])

which works fine.

NeXT 1.2 (Januuary 20, 1990) 





  • Prev by Date: A few questions
  • Previous by thread: A few questions