beetlebug▾
/

tcl::mathfunc asinhTcl 9.1 only

Gives the inverse hyperbolic sine of a number.

tcl::mathfunc::asinh NUMBER
expr {asinh(NUMBER)}

Description

Gives the number whose hyperbolic sine is NUMBER. Each number is valid.

Arguments

ArgumentTypeDefaultDescription
NUMBERnumberrequiredAny number.

Returns

A float.

Examples

% expr {asinh(1)}
0.881373587019543

% expr {asinh(-1)}
-0.881373587019543

% expr {asinh(1e-310)}
1e-310

Errors

% expr {asinh("x")}
expected floating-point number but got "x"
-errorcode TCL VALUE NUMBER

% expr {asinh()}
not enough arguments for math function "asinh"
-errorcode TCL WRONGARGS

Differences from Tcl

Facts

Capability
None.
Tcl release
Tcl 9.1 only.
Since
ztcl 1.0.0-beta.1

See also