Skip to content

tanh

Return hyperbolic tangent.

Declaration

Source position: math.pp line 567

function tanh(x: Single) : Single;
function tanh(x: Double) : Double;
function tanh(x: Extended) : Extended;

Description

Tanh returns the hyperbolic tangent of x.

Errors

None.

See also

Name Description
arcsin Return inverse sine.
sincos Return sine and cosine of argument.
arccos Return inverse cosine.

Example

Program Example48;

{ Program to demonstrate the Tanh function. }

Uses math;

begin
  writeln(tanh(0));
  writeln(tanh(1));
  writeln(tanh(-1));
end.