(Number x, Number y)
| 813 | } |
| 814 | |
| 815 | public boolean equiv(Number x, Number y){ |
| 816 | Ratio rx = toRatio(x); |
| 817 | Ratio ry = toRatio(y); |
| 818 | return rx.numerator.equals(ry.numerator) |
| 819 | && rx.denominator.equals(ry.denominator); |
| 820 | } |
| 821 | |
| 822 | public boolean lt(Number x, Number y){ |
| 823 | Ratio rx = toRatio(x); |