Sign in Join
FPDoc Onlineexperiment

tanh function

In unit Math

Return hyperbolic tangent.

Declaration

pascal
function tanh(x: Single): Single

Description

Tanh returns the hyperbolic tangent of x.

Errors

None.

See also

Example: ex48

pascal
Program Example48;

{ Program to demonstrate the Tanh function. }

Uses math;

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.