FunctionSign
1 if f is nonnegative over its whole domain, -1 if nonpositive, Indeterminate otherwise.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
FunctionSign!FunctionSign(f, x)the sign of f in the real variable x, when it is constant over the whole real line.Typed signatures
| Type | Package | Applies |
|---|---|---|
(expression, symbol) -> expression | analytic | always |
Details
- Matches Wolfram's convention that this needs domain to answer definitively --
FunctionSign(Sqrt(x), x)isIndeterminateeven though wherever it's defined, because isn't defined for every real x (confirmed againstwolframscript). - A polynomial's sign comes from its closed-form shape (see FunctionMonotonicity's classifier); a rational function's sign is the product of its numerator's and denominator's, when both are individually determinate; Exp is always 1.
Examples
Basic #
1/(x^2+1) is defined and positive for every real x
live ↗InOut
Known value · Wolfram 15.0.0, hand cross-checked
Properties #
A cubic is negative for x<0 and positive for x>0
live ↗InOut
Known value · Wolfram 15.0.0, hand cross-checked
About
| Examples | 5 |
|---|---|
| Checked against | Wolfram Language 4 agree1 differ |
| Crosswalk | Wolfram Language |