change-variables-scale
▸ function changeVariablesScale
(p
: number[], a
: number): number[]
Defined in change-variables/double/change-variables-scale.ts:19
Returns the result of performing a change of variables of the form: p(x) <- p(ax) in double precision.
example
changeVariablesScale([1,2,7], 3); //=> [9, 6, 7]
Parameters:
Name | Type | Description |
---|---|---|
p | number[] | 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 |
a | number | a scaling factor, i.e. the a in p(x) <- p(ax) |
Returns: number[]