Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
PolynomialTools[CoefficientVector] - return a Vector of coefficients from a univariate polynomial
PolynomialTools[CoefficientList] - return a list of coefficients from a univariate polynomial
Calling Sequence
CoefficientVector(p, x, vectoropts, orderopts)
CoefficientList(p, x, orderopts)
Parameters
p
-
polynom(anything, x)
x
name of main variable
vectoropt
(optional) a sequence of Vector constructor options; see Vector
orderopts
(optional) equation of the form termorder=reverse or termorder=forward
Description
The CoefficientVector(p, x) calling sequence returns a Vector of coefficients from a polynomial p in x.
The CoefficientList(p, x) calling sequence returns a list of coefficients from a polynomial p in x.
If the term order is not specified or termorder=forward, for , the k-th element of the Vector or list returned corresponds to .
If termorder=reverse is specified, then the coefficients will be stored in the reverse of the above order.
These commands are useful because the Maple command coeff is of linear complexity in the degree of the polynomial. Thus, a naive implementation of CoefficientVector would be of quadratic complexity. The actual implementation is of linear complexity. In fact, for CoefficientVector, if sparse storage is specified as an option, the complexity is linear in the actual number of terms.
The inverse commands are FromCoefficientVector and FromCoefficientList.
Examples
For the zero polynomial, the CoefficientVector command returns a zero-dimensional Vector and the CoefficientList command returns an empty list.
Non-expanded polynomials will also work but since collect will be called on them, this could be inefficient.
The coefficients of the polynomial do not have to be numbers.
See Also
coeff, coeffs, expand, FromCoefficientList, PolynomialTools, Vector
Download Help Document