Package edu.jas.poly
Class RatToIntFactor
- java.lang.Object
-
- edu.jas.poly.RatToIntFactor
-
- All Implemented Interfaces:
UnaryFunctor<BigRational,BigInteger>
class RatToIntFactor extends java.lang.Object implements UnaryFunctor<BigRational,BigInteger>
Conversion of BigRational to BigInteger. result = (num/gcd)*(lcm/denom).
-
-
Constructor Summary
Constructors Constructor Description RatToIntFactor(java.math.BigInteger gcd, java.math.BigInteger lcm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
eval(BigRational c)
Evaluate.
-
-
-
Method Detail
-
eval
public BigInteger eval(BigRational c)
Description copied from interface:UnaryFunctor
Evaluate.- Specified by:
eval
in interfaceUnaryFunctor<BigRational,BigInteger>
- Returns:
- evaluated element.
-
-