SDMPolynom
Description
Thread Safety
Examples
Important: The command SDMPolynom has been deprecated. A sparse distributed data structure is used by default for polynomials and is often more efficient than SDMPolynom. For information on creating and working with polynomials, see polynom.
SDMPolynom (Sparse Distributed Multivariate Polynomial) data structure is a dedicated data structure to represent polynomials. For example, the command a := SDMPolynom(x^3+5*x^2+11*x+15,x); creates the polynomial
a≔SDMPolynom⁡x3+5⁢x2+11⁢x+15,x
This is a univariate polynomial in the variable x with integer coefficients.
Multivariate polynomials, and polynomials over other number rings and fields are constructed similarly. For example, a := SDMPolynom(x*y^3+sqrt(-1)*y+y/2,[x,y]); creates
a≔SDMPolynom⁡x⁢y3+12+I⁢y,x,y
This is a bivariate polynomial in the variables x and y whose coefficients involve the imaginary number −1, which is denoted by capital I in Maple.
The type function can be used to test for polynomials. For example the command type(a, SDMPolynom) tests whether the expression a is a polynomial in the variable x. For details, see type/SDMPolynom.
Polynomials in Maple are sorted in lexicographic order, that is, in descending power of the first indeterminate.
The remainder of this file contains a list of operations that are available for polynomials.
Utility Functions for Manipulating Polynomials
coeff
extract a coefficient of a polynomial
coeffs
construct a sequence of all the coefficients
degree
the degree of a polynomial
lcoeff
the leading coefficient
ldegree
the low degree of a polynomial
tcoeff
the trailing coefficient
indets
the indeterminate of a polynomial
Arithmetic Operations on Polynomials
All the arithmetic operations on polynomials are wrapped inside the constructor SDMPolynom.
+,-
addition and subtraction
*,^
multiplication and exponentiation
Prem
pseudo-remainder of two polynomials
Mathematical Operations on Polynomials
diff
differentiate a polynomial
subs
evaluate a polynomial
eval
Miscellaneous Polynomial Operations
norm
norm of a polynomial
maxnorm
maximum norm of a polynomial
map
mapping an operation on the coefficients of a polynomial
convert
converting Polynomials to a Sum of Products
The SDMPolynom command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
a≔SDMPolynom⁡x3+5⁢x2+11⁢x⁢y−6⁢y+15,x,y:
degree⁡a,x
3
degree⁡a,y
1
coeff⁡a,x,2
SDMPolynom⁡5,y
coeff⁡a,y,1
SDMPolynom⁡11⁢x−6,x
coeffs⁡a,x
−6⁢y+15,11⁢y,5,1
subs⁡x=3,y=2,a
141
type⁡a,SDMPolynom
true
nops⁡a
17
op⁡3,a
op⁡a
1,3,0,5,2,0,11,1,1,−6,0,1,15,0,0
diff⁡a,x
SDMPolynom⁡3⁢x2+10⁢x+11⁢y,x,y
convert⁡a,polynom
x3+5⁢x2+11⁢x⁢y−6⁢y+15
See Also
polynomial
series
type
type/SDMPolynom
Download Help Document