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