public static bool IsSquare(Rational r) { r = r.Reduce(); return(IsSquare(r.Numerator) && IsSquare(r.Denomerator)); }
public static Rational Sqrt(Rational r) { r = r.Reduce(); return(new Rational(Sqrt(r.Numerator), Sqrt(r.Denomerator))); }