convert/horner
|
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
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
|
|
Download Help Document
Was this information helpful?