Ejemplo n.º 1
0
 public static BigFraction ToBigFraction(this BigInteger number) => BigFraction.New(number, 1);
Ejemplo n.º 2
0
        public static BigFraction Reduce(this BigFraction fraction)
        {
            var gcd = Algebra.Gcd(fraction.Numerator, fraction.Denominator);

            return(new BigFraction(fraction.Numerator / gcd, fraction.Denominator / gcd));
        }
Ejemplo n.º 3
0
 // BigFractions....
 public static BigFraction Invert(this BigFraction fraction) => BigFraction.New(fraction.Denominator, fraction.Numerator);