コード例 #1
0
ファイル: Rational.cs プロジェクト: billliwawa/net7mma
 public RationalLarge divideBy(RationalLarge other)
 {
     return(RationalLarge.reduce(num * other.den, den * other.num));
 }
コード例 #2
0
ファイル: Rational.cs プロジェクト: billliwawa/net7mma
 public RationalLarge divide(RationalLarge other)
 {
     return(RationalLarge.reduce(other.num * den, other.den * num));
 }
コード例 #3
0
ファイル: Rational.cs プロジェクト: billliwawa/net7mma
 public RationalLarge minus(RationalLarge other)
 {
     return(RationalLarge.reduce(num * other.den - other.num * den, den * other.den));
 }
コード例 #4
0
ファイル: Rational.cs プロジェクト: billliwawa/net7mma
 public RationalLarge multiply(RationalLarge other)
 {
     return(RationalLarge.reduce(num * other.num, den * other.den));
 }
コード例 #5
0
ファイル: Rational.cs プロジェクト: billliwawa/net7mma
 public Rational plus(Rational other)
 {
     return(RationalLarge.reduce(num * other.den + other.num * den, den * other.den));
 }