MathGroup Archive 1991

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

Search the Archive

Bug in Tanh[x]

  • To: mathgroup at yoda.ncsa.uiuc.edu
  • Subject: Bug in Tanh[x]
  • From: Barry Merriman <barry at math.ucla.edu>
  • Date: Wed, 27 Feb 91 19:07:15 -0800

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