is-rational-multiple-of

▸ function isRationalMultipleOf (a: number[], b: number[]): boolean

Defined in basic/double/is-rational-multiple-of.ts:16

Returns true if either polynomial is an exact rational multiple of the other.

Parameters:

NameTypeDescription
anumber[]a polynomial with coefficients given densely as an array of double precision floating point numbers from highest to lowest power, e.g. [5,-3,0] represents the polynomial 5x^2 - 3x
bnumber[]another polynomial

Returns: boolean