TANH INDEX

TANH _ _ _ _ _ _ _ _ _ _ _ _ operator

The tanh operator returns the hyperbolic tangent of its argument. The derivative of tanh and some simple transformations are known to the system.

syntax:

tanh(<expression>) or tanh <simple\_expression>

<expression> may be any scalar REDUCE expression, not an array, matrix or vector expression. <simple\_expression> must be a single identifier or begin with a prefix operator name.

examples:


tanh b; 

  TANH(B) 


tanh(0); 

  0 


df(tanh(x*y),x); 

                 2
  Y*( - TANH(X*Y)  + 1) 


int(tanh(x),x); 

       2*X
  LOG(E    + 1) - X 


on rounded; tanh 2; 

  0.964027580076

You may attach further functionality by defining its inverse (see atanh). A numeric value is not returned by tanh unless the switch rounded is on and its argument evaluates to a number.