Closed jmbrod closed 2 weeks ago
This is because $1 = 0 \times x + 1$ in the sense of polynomial division (the quotient is $0$). The reference manual says
div_(x1,x2) is replaced by the quotient of the arguments.
This function replaces the experimental function polydiv_ that existed in version 3.
For reference, the Mathematica counterpart (for univariate polynomials) is PolynomialQuotient[1, x, x]
, which gives 0
.
OK, I see, thank you! (I should have read more carefully.)
Hello,
why does
yield
exp = 0;
and notexp = x^-1;
? (This is what I get, as expected, when I definel exp = 1/x;
instead.) If I read the documentation correctly, the arguments ofdiv_
can be any subexpressions. (Maybe I do not understand what subexpressions are?)Thanks for any help!