sign of a number or a polynomial
sign(expr, [x1, x2, ...], 'y')
(optional) list of indeterminates
(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.
expr ≔ 3⁢x2⁢y4−2⁢x⁢y5+x
You can also plot the sign function. A first attempt:
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.
Download Help Document