Previous Page Next Page Contents

polylib::sortMonomials -- sorting monomials with respect to a term ordering

Introduction

polylib::sortMonomials(f, ord) returns a list of all monomials constituting the polynomial f, sorted in descending order with respect to ord.

Call(s)

polylib::sortMonomials(f)
polylib::sortMonomials(f, vars)
polylib::sortMonomials(f, ord)
polylib::sortMonomials(f, vars, ord)

Parameters

f - polynomial or polynomial expression
vars - nonempty list of identifiers
ord - monomial ordering

Returns

a list of polynomials or expressions of the same type as f.

Overloadable:

f

Related Functions

Dom::MonomOrdering, lmonomial, nthmonomial

Details

Example 1

The monomials of the polynomial below are compared using a monomial ordering from Dom::MonomOrdering .

>> polylib::sortMonomials(poly(x^2+x*y^3+2, [x,y]), DegRevLex(2))
                   3                 2
          [poly(x y , [x, y]), poly(x , [x, y]), poly(2, [x, y])]

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000