tcl::mathfunc sinh
Gives the hyperbolic sine of a number.
tcl::mathfunc::sinh NUMBER
expr {sinh(NUMBER)}
Description
Gives the hyperbolic sine of NUMBER. A result too large for a double is Inf or -Inf.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| NUMBER | number | required | Any number. |
Returns
A float.
Examples
% expr {sinh(0)}
0.0
% expr {sinh(1)}
1.1752011936438014
% expr {sinh(1000)}
Inf
Errors
# Tcl 9.1 only
% expr {sinh("x")}
cannot use non-numeric string "x" as operand of "sinh"
-errorcode ARITH DOMAIN {non-numeric string}
# Tcl 8.6 only
% expr {sinh("x")}
can't use non-numeric string as operand of "sinh"
-errorcode ARITH DOMAIN {non-numeric string}
% expr {sinh()}
not enough arguments for math function "sinh"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1