ApasScript.

Polynomials

subst

Replaces a variable with an expression, everywhere it occurs free.

freeVars

The free variables of an expression, sorted.

polyDivide

Polynomial long division: the quotient and remainder.

polyGcd

The monic greatest common divisor of two polynomials.

resultant

The resultant of two polynomials: zero exactly when they share a root.

polyDegree

The degree of a polynomial.

polyCoeff

The coefficient of x^k in a polynomial.

symSum

The exact sum of an expression over an integer range of an index (at most 10,000 terms).

symProduct

The exact product of an expression over an integer range of an index.

geometricSum

The sum of an infinite geometric series a + a*r + a*r^2 + ..., only when |r| < 1.

exactSin

The exact value of sin at a whole number of degrees, when one exists; none otherwise.

exactCos

The exact value of cos at a whole number of degrees, when one exists; none otherwise.

exactTan

The exact value of tan at a whole number of degrees; none where it is undefined or not exact.

polyDerivative

The derivative of a polynomial in one variable.