Beispiel #1
0
 public RationalLarge divideBy(RationalLarge other)
 {
     return(RationalLarge.reduce(num * other.den, den * other.num));
 }
Beispiel #2
0
 public RationalLarge divide(RationalLarge other)
 {
     return(RationalLarge.reduce(other.num * den, other.den * num));
 }
Beispiel #3
0
 public RationalLarge minus(RationalLarge other)
 {
     return(RationalLarge.reduce(num * other.den - other.num * den, den * other.den));
 }
Beispiel #4
0
 public RationalLarge multiply(RationalLarge other)
 {
     return(RationalLarge.reduce(num * other.num, den * other.den));
 }
Beispiel #5
0
 public Rational plus(Rational other)
 {
     return(RationalLarge.reduce(num * other.den + other.num * den, den * other.den));
 }