ElementaryFunctionSign(R, F)¶
limitps.spad line 673 [edit on github]
R: Join(IntegralDomain, Comparable, RetractableTo Integer, LinearlyExplicitOver Integer, GcdDomain)
F: Join(AlgebraicallyClosedField, TranscendentalFunctionCategory, FunctionSpace R)
This package provides functions to determine the sign of an elementary function around a point or infinity.
- sign: (F, Symbol, F, String) -> Union(Integer, failed)
sign(f, x, a, s)
returns the sign off
asx
nearsa
from below ifs
is “left”, or above ifs
is “right”.
- sign: (F, Symbol, OrderedCompletion F) -> Union(Integer, failed)
sign(f, x, a)
returns the sign off
asx
nearsa
, from both sides ifa
is finite.
- sign: F -> Union(Integer, failed)
sign(f)
returns 1 iff
is always non-negative; returns-1
isf
is always non-positive; returns 0 iff
is always 0; returns “failed” if the sign off
varies or can't
be determined.