change-variables-translate-x
▸ function changeVariablesTranslateX
(p
: number[], b
: number): number[]
Defined in change-variables/double/change-variables-translate-x.ts:19
Returns the result of performing a change of variables of the form: p(x) <- p(x + b) in double precision.
example
changeVariablesTranslateX([1,2,7], 3); //=> [1, 8, 22]
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 |
b | number | the b in x + b |
Returns: number[]