change-variables-linear

▸ function changeVariablesLinear (p: number[], a: number, b: number): number[]

Defined in change-variables/double/change-variables-linear.ts:20

Returns the result of performing a change of variables of the form: p(x) <- p(ax + b) in double precision.

example

changeVariablesLinear([1,2,7], 3, 4); //=> [9, 30, 31]

Parameters:

NameTypeDescription
pnumber[]a polynomial with coefficients given densely as an array of double floating point numbers from highest to lowest power, e.g. [5,-3,0] represents the polynomial 5x^2 - 3x
anumberthe a in ax + b
bnumberthe b in ax + b

Returns: number[]