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

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

> 

with⁡RandomTools:

> 

Generate⁡polynom⁡rational,x

−104281139459499999999994−153430091789249999999997⁢x−238787914764249999999997⁢x2+150093742233249999999997⁢x3−36223971562249999999997⁢x4+342622684449499999999994⁢x5

(1)
> 

Generate⁡polynom⁡positive⁡denominator=12,x,degree=10

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

(2)
> 

Generate⁡polynom⁡nonnegint⁡range=2,x,y

y⁢x4+2⁢y2⁢x3+2⁢x2⁢y3+2⁢x⁢y4+2⁢y5+y⁢x3+2⁢x2⁢y2+y4+x3+y⁢x2+2⁢x⁢y2+x2+x⁢y+2⁢y2+x

(3)

See Also

flavor/structured

RandomTools

RandomTools[Generate]

type/polynom