sign
sign of a number or a polynomial
Calling Sequence
Parameters
Description
Thread Safety
Examples
sign(expr, [x1, x2, ...], 'y')
expr
-
multivariate polynomial
[x1, ...]
(optional) list of indeterminates
y
(optional) unevaluated name
The sign function computes the sign of the leading coefficient of expr. The sign function works for polynomials with coefficients of type `numeric`. It does not take assumptions into account.
The leading coefficient of expr is determined with respect to the indeterminates given. If none are given, the leading coefficient is taken with respect to all its indeterminates. Note therefore that the leading coefficient is dependent on the order of the indeterminates which may vary from one Maple session to another, but not within a session.
The unevaluated name specified as the optional third argument is assigned the leading term.
The sign command is thread-safe as of Maple 15 .
For more information on thread safety, see index/threadsafe.
sign⁡0
1
sign⁡−23
−1
expr≔3⁢x2⁢y4−2⁢x⁢y5+x
indets⁡expr
x,y
sign⁡expr
sign⁡expr,x,y
sign⁡expr,y,x
sign⁡expr,y,x,a
a
x⁢y5
You can also plot the sign function. A first attempt:
plot⁡sign⁡x,x=−1..1
Notice that the plot results in the line y=1. This occurs because it computes the constant sign(x)=1 and plots that. To get the expected plot, enclose sign(x) in right-single quotes.
See Also
indets
lcoeff
signum
Download Help Document