Table of Contents

TANH

Returns the hyperbolic tangent of its argument

Implemented by: bw32, Gambas

With variations:

Also written as:

Usage

Variations

Examples

Comments

The BASIC Cookbook points out that BASICs which don't implement the function can achieve the same results, for a given X argument, with the following formula:

  1. EXP(-X)/(EXP(X) + EXP(-X))*2 + 1

Similar keywords

In other languages...

References