Skip to content

rationalMul

rationalMul(a, b): Rational

Defined in: packages/math-numbers/src/rational/rational-mul.ts:11

a × b, as (a.n·b.n) / (a.d·b.d).

Cross-cancelling before multiplying keeps both products at the width of the operands rather than their sum.

Readonly<Rational>

Readonly<Rational>

Rational