public Fraction dividedBy ( Fraction f ) { if ( ZERO . equals ( f ) ) { throw new ArithmeticException ( "Division by zero" ) ; } return new Fraction ( n . multiply ( f . d ) , d . multiply ( f . n ) ) . reduced ( ) ; }
Divides this value by the given one and returns the result in reduced form .