polynom - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


RandomTools Flavor: polynom

describe a flavor of a random polynomial

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

polynom(coeffs, x, opt)

Parameters

coeffs

-

flavor of the coefficients

x

-

name or a set or list of names

opt

-

(optional) equation of the form degree=n where n is a non-negative integer; specify options for the random polynomial

Description

• 

The flavor polynom(coeffs, x) describes a random polynomial in a given number of variables x with coefficients coeffs of a given random flavor.

  

To describe a flavor of a random polynomial, use either polynom(coeffs, x) or polynom(coeffs, x, opt) (where opt is described following) as the argument to RandomTools[Generate] or as part of a structured flavor.

• 

By default, the flavor polynom(coeffs, x) describes a random polynomial in the given variable(s) of degree 5.

• 

You can modify the properties of the random polynomial by specifying opt as the equation degree=n, where n is a non-negative integer that indicates the degree of the polynomial. By default, the degree of the polynomial is set to 5.

Examples

withRandomTools:

Generatepolynomrational,x

104281139459499999999994153430091789249999999997x238787914764249999999997x2+150093742233249999999997x336223971562249999999997x4+342622684449499999999994x5

(1)

Generatepolynompositivedenominator=12,x,degree=10

112+23x+512x2+56x3+1112x4+16x5+16x6+13x7+23x8+1112x9+14x10

(2)

Generatepolynomnonnegintrange=2,x,y

yx4+2y2x3+2x2y3+2xy4+2y5+yx3+2x2y2+y4+x3+yx2+2xy2+x2+xy+2y2+x

(3)

See Also

flavor/structured

RandomTools

RandomTools[Generate]

type/polynom