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
| Argument | Type | Default | Description |
|---|---|---|---|
| NUMBER | number | required | Any 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
- tclsh 9.1.0 gives the error "floating-point value too large to represent" for some results below 2**-1022, such as
asinh(1e-310). ztcl gives the result.
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 only.
- Since
- ztcl 1.0.0-beta.1