Difference between revisions of "Sign"
Line 10: | Line 10: | ||
* 1 when x>0 | * 1 when x>0 | ||
* [[NaN]] when x is [[NaN]] (with Warning) | * [[NaN]] when x is [[NaN]] (with Warning) | ||
+ | |||
+ | = Library = | ||
+ | |||
+ | Math | ||
+ | |||
+ | = Notes = | ||
+ | |||
+ | This function was not built into Analytica until release 4.2. It was common in 4.1 and earlier to define it as a [[User-Defined Functions|user-defined function]]: | ||
+ | Function Sign(x) := if x<0 then -1 else if x>0 then 1 else 0 | ||
+ | |||
+ | = See Also = | ||
+ | |||
+ | * [[Abs]] |
Revision as of 05:37, 14 February 2009
Sign(x)
New to Analytica 4.2
The sign of a number.
Returns:
Library
Math
Notes
This function was not built into Analytica until release 4.2. It was common in 4.1 and earlier to define it as a user-defined function:
Function Sign(x) := if x<0 then -1 else if x>0 then 1 else 0
See Also
Comments
Enable comment auto-refresher