Next: Arithmetic (integersreals and
Up: Library utilities.
Previous: Factorization.
-
add, SUBT, MULT: operations on polynomials
-
CHS: opposite of a polynomial
-
POWER: polynomial to a power. Ex:
'X+2' 5 POWER -> 'X^5+10*X^4+40*X^3+80*X^2+80*X+32'
-
DIV2: euclidean division, returns at stack level 2 the
quotient, and at stack level 1 the remainder
-
DIV1: usual division
-
FDER: derivative (with respect to VX)
-
FINTG: antiderivative (with respect to VX). Works
for polynomial and rational fractions.
-
SQRT: square root of a polynomial. Ex:
'X^2+2*X+1' -> 'X+1'
-
DEGRE (list polynomial only): order. Ex:
{ 0 1 2 } -> 1
-
L2S: multiple variable polynomial evaluation. Ex:
{ { 1 2 3} {4 5 6} } { X Y } L2S -> '(Y^2+2*Y+3)*X+(4*Y^2+5*Y+6)'
-
HORN executes an Horner scheme. The syntax is:
verbatim20
This means that X2+2*X+3=(X+7)(X-5)+38.
-
PTAYL: Taylor development (for polynomials only):
2: P(X), 1: r -> P(X-r)
Example:
'X^3+2*X' 2 PTAYL -> 'X^3+6*X^2+14*X+12'
means that X3+2X=(X-2)3+6(X-2)2+14(X-2)+12