e-reflect-about-y-axis
▸ function eReflectAboutYAxis
(p
: number[][]): number[][]
Defined in change-variables/expansion/e-reflect-about-y-axis.ts:21
Returns the result of reflecting the given polynomial about the Y-axis, i.e. perform the change of variables: p(x) <- p(-x).
example
eReflectAboutYAxis([[5],[4],[3],[2],[1]]); //=> [[5], [-4], [3], [-2], [1]]
Parameters:
Name | Type | Description |
---|---|---|
p | number[][] | a polynomial with coefficients given densely as an array of Shewchuk floating point expansions from highest to lowest power, e.g. [[5],[-3],[0]] represents the polynomial 5x^2 - 3x |
Returns: number[][]