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

Online Help

All Products    Maple    MapleSim


convert/horner

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

convert(f, 'horner', x)

Parameters

f

-

polynomial or rational function in x, or set, list or relation of these; expression to be converted

x

-

(optional) name, list of names or set of names; the variable or variables with respect to which the conversion is performed

Description

• 

The convert(f, 'horner', x) command converts the input to horner form with respect to x, or the names in x if this argument is a list or set.

• 

If x is omitted, it is taken as indets(f,name).

• 

If x is given as a list or set of names, the conversion is applied recursively to the coefficients of f in the first variable given.  A list allows for control over the order of the conversions.

• 

If f is a set, list or relation, the result is map(convert, f, 'horner', x).

• 

Any subexpressions of f which are not either polynomials or rational functions in x are frozen via a call to frontend prior to conversion.

Examples

convertx2+3x+4,horner,x

4+3+xx

(1)

polyy2x2+2xy2+2x2y+x2+2x

polyy2x2+2x2y+2xy2+x2+2x

(2)

convertpoly,horner,x

2y2+2+y2+2y+1xx

(3)

convertpoly,horner,x,y

2y2+2+1+2+yyxx

(4)

convertpoly,horner,y,x

2+xx+2x2+2+xxyy

(5)

convertxi23xi+24xi2xi32+xi2,horner

2+3+xixi2+4+12xixixi

(6)

converta3+3a2sintacost+1+sqrta=1atant+a2,horner,a

a+1+cost+3sint+aaa=1+tant+aa

(7)

convert3b32b2+b1,2b3b25b+6,horner

1+1+2+3bbb,2b6+5+3bb

(8)

convert3b32b2+b1,2b3b25b+6,horner

2b6+5+3bb,1+1+2+3bbb

(9)

See Also

convert

frontend