Skip to content

rationalSqrtExact

rationalSqrtExact(value): Rational | null

Defined in: packages/math-numbers/src/rational/rational-sqrt-exact.ts:13

The exact square root, when both numerator and denominator of the reduced form are perfect squares — √(4/9) = 2/3.

Readonly<Rational>

Rational | null

The exact root, or null when it is irrational.

When value is negative.