Documentation moved.
This entry is now part of the unified function reference. Open the unified page →
Function
src/index.ts:860nerdamer.content
nerdamer.content(x: ExpressionInput | Polynomial): ExpressionReturns the exact rational content of polynomial expression input.
remarks
The content is the greatest common divisor of the polynomial's numeric coefficients. If expression conversion fails, the operation remains symbolic as
`content(input)`. A
`Polynomial`instance is not consumed directly by this helper; it currently falls through to the same symbolic
`content(...)`form.
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | Polynomial | Expression-like input or polynomial to inspect. |
Returns
Expression — A numeric expression for converted input, otherwise an unevaluated symbolic `content` call.
Examples
content('6*x^2+15*x-3').text(); // "3"