Function reference · Polynomials
divide
Divides expressions using polynomial quotient/remainder reconstruction when possible.
For polynomial inputs, divide reconstructs quotient+remainder/divisor as a reusable Expression. Inputs outside the polynomial domain fall back to ordinary symbolic division.
Unlike div, the result is a single expression rather than a quotient/remainder Vector.
Examples
These examples use Nerdamer Notation.
Reconstruct an exact polynomial quotient.
divide(x^2-1,x-1) // → 1+x
Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
divide(arg1, arg2)
nerdamer.divide
Call the operation through the default nerdamer import.
nerdamer.divide(dividend: ExpressionInput, divisor: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
dividend | ExpressionInput | — |
divisor | ExpressionInput | — |
