Function reference · Polynomials
div
Performs polynomial division and returns quotient and remainder.
When both arguments are polynomial-like, div returns a two-element Vector containing the quotient and remainder. Inputs outside the polynomial domain use the compatibility fallback [0, dividend].
Multivariable input is handled as a multivariable polynomial rather than by silently choosing one main variable.
Examples
These examples use Nerdamer Notation.
Return the polynomial quotient and remainder.
div(x^2-1,x-1)Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
div(arg1, arg2)
nerdamer.div
Call the operation through the default nerdamer import.
nerdamer.div(dividend: ExpressionInput, divisor: ExpressionInput): Vector
Parameters
| Name | Type | Description |
|---|---|---|
dividend | ExpressionInput | — |
divisor | ExpressionInput | — |
