b-change-variables-scale

▸ function bChangeVariablesScale (p: bigint[], a: bigint): bigint[]

Defined in change-variables/bigint/b-change-variables-scale.ts:19

Returns the result of performing a change of variables of the form: p(x) <- p(ax).

example

bChangeVariablesScale([1n,2n,7n], 3n); //=> [9n, 6n, 7n]

Parameters:

NameTypeDescription
pbigint[]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
abiginta scaling factor, i.e. the a in p(x) <- p(ax)

Returns: bigint[]