info functions
Gives the names of the math functions of expr.
info functions ?PATTERN?
Description
Gives the name of each math function, sorted: each command of the namespace tcl::mathfunc, with the ones that a script adds there. With PATTERN, the list has only the names that match it as a glob pattern.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| PATTERN | glob pattern | none | The names to keep. |
Returns
A sorted list of function names.
Examples
# Tcl 9.1 only
% info functions s*
signbit sin sinh sqrt srand
# Tcl 8.6 only
% info functions s*
sin sinh sqrt srand
% proc tcl::mathfunc::twice {v} {expr {$v * 2}}; info functions tw*
twice
Errors
% info functions a b
wrong # args: should be "info functions ?pattern?"
-errorcode TCL WRONGARGS
Tcl 8.6 and Tcl 9.1
- Tcl 9.1 adds the functions
acosh,asinh,atanh,cbrt,copysign,dim,erf,erfc,exp2,expm1,fma,gamma,isfinite,isinf,isnan,isnormal,issubnormal,isunordered,ldexp,lgamma,log1p,log2,logb,nextafter,remainder,signbit, andtrunc.
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1