Uses of Class
de.uni_freiburg.informatik.ultimate.logic.Rational
| Package | Description |
|---|---|
| de.uni_freiburg.informatik.ultimate.logic |
-
Uses of Rational in de.uni_freiburg.informatik.ultimate.logic
Fields in de.uni_freiburg.informatik.ultimate.logic declared as Rational Modifier and Type Field Description static RationalRational. MONEThe number -1.static RationalRational. NANNot a number.static RationalRational. NEGATIVE_INFINITYNegative infinity.static RationalRational. ONEThe number 1.static RationalRational. POSITIVE_INFINITYPositive infinity.static RationalRational. TWOThe number 2.static RationalRational. ZEROThe number 0.Methods in de.uni_freiburg.informatik.ultimate.logic that return Rational Modifier and Type Method Description RationalRational. abs()Compute the absolute of this rational.RationalRational. add(Rational other)Return a new rational representingthis + other.RationalRational. addmul(Rational fac1, Rational fac2)Computesthis + (fac1*fac2).RationalRational. ceil()Return a new rational representing the smallest integral rational not smaller thanthis.RationalRational. div(Rational other)Return a new rational representingthis / other.RationalRational. floor()Return a new rational representing the biggest integral rational not bigger thanthis.RationalRational. frac()Returns the fractional part of the rational, i.e.RationalRational. gcd(Rational other)Compute the gcd of two rationals (this and other).RationalRational. inverse()Returns a new rational representing the inverse ofthis.RationalRational. mul(Rational other)Return a new rational representingthis * other.RationalRational. mul(java.math.BigInteger other)Return a new rational representingthis * other.RationalRational. negate()Returns a new rational equal to-this.RationalRational. sub(Rational other)Return a new rational representingthis - other.RationalRational. subdiv(Rational s, Rational d)Computes(this - s) / d.RationalMutableRational. toRational()Convert this mutable rational into a immutable rational.static RationalRational. valueOf(long newnum, long newdenom)Construct a rational from two longs.static RationalRational. valueOf(java.math.BigInteger bignum, java.math.BigInteger bigdenom)Construct a rational from two bigints.Methods in de.uni_freiburg.informatik.ultimate.logic with parameters of type Rational Modifier and Type Method Description MutableRationalMutableRational. add(Rational other)Add the rational other to this rational.RationalRational. add(Rational other)Return a new rational representingthis + other.MutableRationalMutableRational. addmul(Rational fac1, Rational fac2)Computesthis += (fac1*fac2).MutableRationalMutableRational. addmul(Rational fac1, java.math.BigInteger fac2)Computesthis += (fac1*fac2).RationalRational. addmul(Rational fac1, Rational fac2)Computesthis + (fac1*fac2).intMutableRational. compareTo(Rational o)Compares this mutable rational with the other.intRational. compareTo(Rational o)MutableRationalMutableRational. div(Rational other)Divide this rational by the other and store the result in this.RationalRational. div(Rational other)Return a new rational representingthis / other.RationalRational. gcd(Rational other)Compute the gcd of two rationals (this and other).MutableRationalMutableRational. mul(Rational other)Multiply this rational with other and store the result in this.RationalRational. mul(Rational other)Return a new rational representingthis * other.voidMutableRational. setValue(Rational value)Set the value of this rational to value.MutableRationalMutableRational. sub(Rational other)Subtract the other rational from this.RationalRational. sub(Rational other)Return a new rational representingthis - other.MutableRationalMutableRational. subdiv(Rational s, Rational d)Computesthis = (this - s) / d.RationalRational. subdiv(Rational s, Rational d)Computes(this - s) / d.Constructors in de.uni_freiburg.informatik.ultimate.logic with parameters of type Rational Constructor Description MutableRational(Rational r)Create a new mutable rational from a rational.