Documentation moved.
This entry is documented with its primary interface. Open the documentation →
Function
src/index.ts:1046nerdamer.divide
nerdamer.divide(dividend: ExpressionInput, divisor: ExpressionInput): ExpressionDivides two expressions using polynomial quotient/remainder reconstruction when possible.
remarks
This restores the parser-facing compatibility behavior historically exposed as
divide(a,b): a successful polynomial division is returned as
quotient + remainder/divisor, so the result is a reusable symbolic expression. When
more than one variable is present, Nerdamer treats the input as a multivariable polynomial
rather than silently choosing a main variable. Inputs outside the polynomial domain fall
back to ordinary symbolic division. Once both inputs are polynomial, failures from the
division engine are allowed to propagate.
Parameters
| Name | Type | Description |
|---|---|---|
dividend | ExpressionInput | — |
divisor | ExpressionInput | — |
