ListPolynomial

Qubes 9.0 Applies a polynomial to the items of a list.

Syntax

ListPolynomial(list, f0[, f1, f2...])
list = list on which to apply the polynomial

Remarks

For x an item in the list, the polynomial is of the form

x' := f0 + f1 * x + f2 * x² + f3 * x³ + ...

If only f0 is passed, the value of f1 is assumed to be 1, ie. it is a constant offset.

Examples

ListPolynomial(List(1, 2, 3), 10) = ( 11, 12, 13 ) as it applied 10 + x
ListPolynomial(List(1, 2, 3), 10, 2) = ( 12, 14, 16 ) as it applied 10 + 2 * x
ListPolynomial(List(1, 2, 3), 0, 0, 1) = ( 1, 4, 9 ) as it applied 0 + 0 * x + 1 * x²

Classification

Ranges Maths