Package edu.jas.poly
Class RatToIntFactor
java.lang.Object
edu.jas.poly.RatToIntFactor
- All Implemented Interfaces:
UnaryFunctor<BigRational,
BigInteger>
Conversion of BigRational to BigInteger. result = (num/gcd)*(lcm/denom).
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final BigInteger
(package private) final BigInteger
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lcm
-
gcd
-
-
Constructor Details
-
RatToIntFactor
-
-
Method Details
-
eval
Description copied from interface:UnaryFunctor
Evaluate.- Specified by:
eval
in interfaceUnaryFunctor<BigRational,
BigInteger> - Returns:
- evaluated element.
-