public override bool Equals(Object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } //if (getClass() != obj.getClass()) //return false; RationalLarge other = (RationalLarge)obj; if (den != other.den) { return(false); } if (num != other.num) { return(false); } return(true); }
public RationalLarge divideBy(RationalLarge other) { return(RationalLarge.reduce(num * other.den, den * other.num)); }
public RationalLarge divide(RationalLarge other) { return(RationalLarge.reduce(other.num * den, other.den * num)); }
public RationalLarge multiply(RationalLarge other) { return(RationalLarge.reduce(num * other.num, den * other.den)); }
public RationalLarge minus(RationalLarge other) { return(RationalLarge.reduce(num * other.den - other.num * den, den * other.den)); }
public Rational plus(Rational other) { return(RationalLarge.reduce(num * other.den + other.num * den, den * other.den)); }
public RationalLarge getPtsR() { return(RationalLarge.R(pts, timescale)); }
public bool equals(RationalLarge other) { return(num * other.den == other.num * den); }
public bool greaterOrEqualTo(RationalLarge sec) { return(num * sec.den >= sec.num * den); }
public bool smallerOrEqualTo(RationalLarge sec) { return(num * sec.den <= sec.num * den); }
public bool greaterThen(RationalLarge sec) { return(num * sec.den > sec.num * den); }
public bool lessThen(RationalLarge sec) { return(num * sec.den < sec.num * den); }