Sign in Join
FPDoc Onlineexperiment

ArTanH function

In unit Math

Return inverse hyperbolic tangent.

Declaration

pascal
function ArTanH(x: Float): Float

Description

artanh returns the inverse hyperbolic tangent of its argument x, where x should lie in the interval [-1,1], borders included. The arctanh variant of this function is supplied for Delphi compatibility.

Errors

In case x is not in the interval [-1,1], an EInvalidArgument exception is raised.

See also

Example: ex5

pascal
Program Example5;

{ Program to demonstrate the artanh function. }

Uses math;

begin
  Writeln(artanh(0));
  Writeln(artanh(0.5));
end.

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