CommonDenominator(R, Q, A)ΒΆ

cden.spad line 43

CommonDenominator provides functions to compute the common denominator of a finite linear aggregate of elements of the quotient field of an integral domain.

clearDenominator: A -> A
clearDenominator([q1, ..., qn]) returns [p1, ..., pn] such that qi = pi/d where d is a common denominator for the qi's.
commonDenominator: A -> R
commonDenominator([q1, ..., qn]) returns a common denominator d for q1, ..., qn.
splitDenominator: A -> Record(num: A, den: R)
splitDenominator([q1, ..., qn]) returns [[p1, ..., pn], d] such that qi = pi/d and d is a common denominator for the qi's.