commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r959802 [2/10] - in /websites/production/commons/content/proper/commons-math/xref/org/apache/commons/math3: fraction/ geometry/euclidean/threed/ geometry/euclidean/twod/ ml/neuralnet/ ml/neuralnet/sofm/ ode/ ode/events/ special/ stat/infere...
Date Mon, 27 Jul 2015 19:40:45 GMT

Modified: websites/production/commons/content/proper/commons-math/xref/org/apache/commons/math3/fraction/BigFraction.html
==============================================================================
--- websites/production/commons/content/proper/commons-math/xref/org/apache/commons/math3/fraction/BigFraction.html (original)
+++ websites/production/commons/content/proper/commons-math/xref/org/apache/commons/math3/fraction/BigFraction.html Mon Jul 27 19:40:45 2015
@@ -127,10 +127,10 @@
 <a class="jxr_linenumber" name="L119" href="#L119">119</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a>(BigInteger num, BigInteger den) {
 <a class="jxr_linenumber" name="L120" href="#L120">120</a>         MathUtils.checkNotNull(num, LocalizedFormats.NUMERATOR);
 <a class="jxr_linenumber" name="L121" href="#L121">121</a>         MathUtils.checkNotNull(den, LocalizedFormats.DENOMINATOR);
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>         <strong class="jxr_keyword">if</strong> (BigInteger.ZERO.equals(den)) {
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>         <strong class="jxr_keyword">if</strong> (den.signum() == 0) {
 <a class="jxr_linenumber" name="L123" href="#L123">123</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/ZeroException.html">ZeroException</a>(LocalizedFormats.ZERO_DENOMINATOR);
 <a class="jxr_linenumber" name="L124" href="#L124">124</a>         }
-<a class="jxr_linenumber" name="L125" href="#L125">125</a>         <strong class="jxr_keyword">if</strong> (BigInteger.ZERO.equals(num)) {
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>         <strong class="jxr_keyword">if</strong> (num.signum() == 0) {
 <a class="jxr_linenumber" name="L126" href="#L126">126</a>             numerator   = BigInteger.ZERO;
 <a class="jxr_linenumber" name="L127" href="#L127">127</a>             denominator = BigInteger.ONE;
 <a class="jxr_linenumber" name="L128" href="#L128">128</a>         } <strong class="jxr_keyword">else</strong> {
@@ -143,7 +143,7 @@
 <a class="jxr_linenumber" name="L135" href="#L135">135</a>             }
 <a class="jxr_linenumber" name="L136" href="#L136">136</a> 
 <a class="jxr_linenumber" name="L137" href="#L137">137</a>             <em class="jxr_comment">// move sign to numerator</em>
-<a class="jxr_linenumber" name="L138" href="#L138">138</a>             <strong class="jxr_keyword">if</strong> (BigInteger.ZERO.compareTo(den) &gt; 0) {
+<a class="jxr_linenumber" name="L138" href="#L138">138</a>             <strong class="jxr_keyword">if</strong> (den.signum() == -1) {
 <a class="jxr_linenumber" name="L139" href="#L139">139</a>                 num = num.negate();
 <a class="jxr_linenumber" name="L140" href="#L140">140</a>                 den = den.negate();
 <a class="jxr_linenumber" name="L141" href="#L141">141</a>             }
@@ -458,7 +458,7 @@
 <a class="jxr_linenumber" name="L450" href="#L450">450</a> <em class="jxr_javadoccomment">     * @return the absolute value as a {@link BigFraction}.</em>
 <a class="jxr_linenumber" name="L451" href="#L451">451</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L452" href="#L452">452</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> abs() {
-<a class="jxr_linenumber" name="L453" href="#L453">453</a>         <strong class="jxr_keyword">return</strong> (BigInteger.ZERO.compareTo(numerator) &lt;= 0) ? <strong class="jxr_keyword">this</strong> : negate();
+<a class="jxr_linenumber" name="L453" href="#L453">453</a>         <strong class="jxr_keyword">return</strong> (numerator.signum() == 1) ? <strong class="jxr_keyword">this</strong> : negate();
 <a class="jxr_linenumber" name="L454" href="#L454">454</a>     }
 <a class="jxr_linenumber" name="L455" href="#L455">455</a> 
 <a class="jxr_linenumber" name="L456" href="#L456">456</a>     <em class="jxr_javadoccomment">/**</em>
@@ -475,684 +475,772 @@
 <a class="jxr_linenumber" name="L467" href="#L467">467</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L468" href="#L468">468</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> add(<strong class="jxr_keyword">final</strong> BigInteger bg) <strong class="jxr_keyword">throws</strong> NullArgumentException {
 <a class="jxr_linenumber" name="L469" href="#L469">469</a>         MathUtils.checkNotNull(bg);
-<a class="jxr_linenumber" name="L470" href="#L470">470</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a>(numerator.add(denominator.multiply(bg)), denominator);
-<a class="jxr_linenumber" name="L471" href="#L471">471</a>     }
-<a class="jxr_linenumber" name="L472" href="#L472">472</a> 
-<a class="jxr_linenumber" name="L473" href="#L473">473</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L474" href="#L474">474</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L475" href="#L475">475</a> <em class="jxr_javadoccomment">     * Adds the value of this fraction to the passed {@code integer}, returning</em>
-<a class="jxr_linenumber" name="L476" href="#L476">476</a> <em class="jxr_javadoccomment">     * the result in reduced form.</em>
-<a class="jxr_linenumber" name="L477" href="#L477">477</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L478" href="#L478">478</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L479" href="#L479">479</a> <em class="jxr_javadoccomment">     * @param i</em>
-<a class="jxr_linenumber" name="L480" href="#L480">480</a> <em class="jxr_javadoccomment">     *            the {@code integer} to add.</em>
-<a class="jxr_linenumber" name="L481" href="#L481">481</a> <em class="jxr_javadoccomment">     * @return a &lt;code&gt;BigFraction&lt;/code&gt; instance with the resulting values.</em>
-<a class="jxr_linenumber" name="L482" href="#L482">482</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L483" href="#L483">483</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> add(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> i) {
-<a class="jxr_linenumber" name="L484" href="#L484">484</a>         <strong class="jxr_keyword">return</strong> add(BigInteger.valueOf(i));
-<a class="jxr_linenumber" name="L485" href="#L485">485</a>     }
-<a class="jxr_linenumber" name="L486" href="#L486">486</a> 
-<a class="jxr_linenumber" name="L487" href="#L487">487</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L488" href="#L488">488</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L489" href="#L489">489</a> <em class="jxr_javadoccomment">     * Adds the value of this fraction to the passed {@code long}, returning</em>
-<a class="jxr_linenumber" name="L490" href="#L490">490</a> <em class="jxr_javadoccomment">     * the result in reduced form.</em>
-<a class="jxr_linenumber" name="L491" href="#L491">491</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L492" href="#L492">492</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L493" href="#L493">493</a> <em class="jxr_javadoccomment">     * @param l</em>
-<a class="jxr_linenumber" name="L494" href="#L494">494</a> <em class="jxr_javadoccomment">     *            the {@code long} to add.</em>
-<a class="jxr_linenumber" name="L495" href="#L495">495</a> <em class="jxr_javadoccomment">     * @return a &lt;code&gt;BigFraction&lt;/code&gt; instance with the resulting values.</em>
-<a class="jxr_linenumber" name="L496" href="#L496">496</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L497" href="#L497">497</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> add(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> l) {
-<a class="jxr_linenumber" name="L498" href="#L498">498</a>         <strong class="jxr_keyword">return</strong> add(BigInteger.valueOf(l));
-<a class="jxr_linenumber" name="L499" href="#L499">499</a>     }
-<a class="jxr_linenumber" name="L500" href="#L500">500</a> 
-<a class="jxr_linenumber" name="L501" href="#L501">501</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L502" href="#L502">502</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L503" href="#L503">503</a> <em class="jxr_javadoccomment">     * Adds the value of this fraction to another, returning the result in</em>
-<a class="jxr_linenumber" name="L504" href="#L504">504</a> <em class="jxr_javadoccomment">     * reduced form.</em>
-<a class="jxr_linenumber" name="L505" href="#L505">505</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L506" href="#L506">506</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L507" href="#L507">507</a> <em class="jxr_javadoccomment">     * @param fraction</em>
-<a class="jxr_linenumber" name="L508" href="#L508">508</a> <em class="jxr_javadoccomment">     *            the {@link BigFraction} to add, must not be &lt;code&gt;null&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L509" href="#L509">509</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values.</em>
-<a class="jxr_linenumber" name="L510" href="#L510">510</a> <em class="jxr_javadoccomment">     * @throws NullArgumentException if the {@link BigFraction} is {@code null}.</em>
-<a class="jxr_linenumber" name="L511" href="#L511">511</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L512" href="#L512">512</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> add(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> fraction) {
-<a class="jxr_linenumber" name="L513" href="#L513">513</a>         <strong class="jxr_keyword">if</strong> (fraction == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L514" href="#L514">514</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html">NullArgumentException</a>(LocalizedFormats.FRACTION);
-<a class="jxr_linenumber" name="L515" href="#L515">515</a>         }
-<a class="jxr_linenumber" name="L516" href="#L516">516</a>         <strong class="jxr_keyword">if</strong> (ZERO.equals(fraction)) {
-<a class="jxr_linenumber" name="L517" href="#L517">517</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
-<a class="jxr_linenumber" name="L518" href="#L518">518</a>         }
-<a class="jxr_linenumber" name="L519" href="#L519">519</a> 
-<a class="jxr_linenumber" name="L520" href="#L520">520</a>         BigInteger num = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L521" href="#L521">521</a>         BigInteger den = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L522" href="#L522">522</a> 
-<a class="jxr_linenumber" name="L523" href="#L523">523</a>         <strong class="jxr_keyword">if</strong> (denominator.equals(fraction.denominator)) {
-<a class="jxr_linenumber" name="L524" href="#L524">524</a>             num = numerator.add(fraction.numerator);
-<a class="jxr_linenumber" name="L525" href="#L525">525</a>             den = denominator;
-<a class="jxr_linenumber" name="L526" href="#L526">526</a>         } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L527" href="#L527">527</a>             num = (numerator.multiply(fraction.denominator)).add((fraction.numerator).multiply(denominator));
-<a class="jxr_linenumber" name="L528" href="#L528">528</a>             den = denominator.multiply(fraction.denominator);
-<a class="jxr_linenumber" name="L529" href="#L529">529</a>         }
-<a class="jxr_linenumber" name="L530" href="#L530">530</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a>(num, den);
+<a class="jxr_linenumber" name="L470" href="#L470">470</a> 
+<a class="jxr_linenumber" name="L471" href="#L471">471</a>         <strong class="jxr_keyword">if</strong> (numerator.signum() == 0) {
+<a class="jxr_linenumber" name="L472" href="#L472">472</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a>(bg);
+<a class="jxr_linenumber" name="L473" href="#L473">473</a>         }
+<a class="jxr_linenumber" name="L474" href="#L474">474</a>         <strong class="jxr_keyword">if</strong> (bg.signum() == 0) {
+<a class="jxr_linenumber" name="L475" href="#L475">475</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
+<a class="jxr_linenumber" name="L476" href="#L476">476</a>         }
+<a class="jxr_linenumber" name="L477" href="#L477">477</a> 
+<a class="jxr_linenumber" name="L478" href="#L478">478</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a>(numerator.add(denominator.multiply(bg)), denominator);
+<a class="jxr_linenumber" name="L479" href="#L479">479</a>     }
+<a class="jxr_linenumber" name="L480" href="#L480">480</a> 
+<a class="jxr_linenumber" name="L481" href="#L481">481</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L482" href="#L482">482</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L483" href="#L483">483</a> <em class="jxr_javadoccomment">     * Adds the value of this fraction to the passed {@code integer}, returning</em>
+<a class="jxr_linenumber" name="L484" href="#L484">484</a> <em class="jxr_javadoccomment">     * the result in reduced form.</em>
+<a class="jxr_linenumber" name="L485" href="#L485">485</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L486" href="#L486">486</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L487" href="#L487">487</a> <em class="jxr_javadoccomment">     * @param i</em>
+<a class="jxr_linenumber" name="L488" href="#L488">488</a> <em class="jxr_javadoccomment">     *            the {@code integer} to add.</em>
+<a class="jxr_linenumber" name="L489" href="#L489">489</a> <em class="jxr_javadoccomment">     * @return a &lt;code&gt;BigFraction&lt;/code&gt; instance with the resulting values.</em>
+<a class="jxr_linenumber" name="L490" href="#L490">490</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L491" href="#L491">491</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> add(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> i) {
+<a class="jxr_linenumber" name="L492" href="#L492">492</a>         <strong class="jxr_keyword">return</strong> add(BigInteger.valueOf(i));
+<a class="jxr_linenumber" name="L493" href="#L493">493</a>     }
+<a class="jxr_linenumber" name="L494" href="#L494">494</a> 
+<a class="jxr_linenumber" name="L495" href="#L495">495</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L496" href="#L496">496</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L497" href="#L497">497</a> <em class="jxr_javadoccomment">     * Adds the value of this fraction to the passed {@code long}, returning</em>
+<a class="jxr_linenumber" name="L498" href="#L498">498</a> <em class="jxr_javadoccomment">     * the result in reduced form.</em>
+<a class="jxr_linenumber" name="L499" href="#L499">499</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L500" href="#L500">500</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L501" href="#L501">501</a> <em class="jxr_javadoccomment">     * @param l</em>
+<a class="jxr_linenumber" name="L502" href="#L502">502</a> <em class="jxr_javadoccomment">     *            the {@code long} to add.</em>
+<a class="jxr_linenumber" name="L503" href="#L503">503</a> <em class="jxr_javadoccomment">     * @return a &lt;code&gt;BigFraction&lt;/code&gt; instance with the resulting values.</em>
+<a class="jxr_linenumber" name="L504" href="#L504">504</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L505" href="#L505">505</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> add(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> l) {
+<a class="jxr_linenumber" name="L506" href="#L506">506</a>         <strong class="jxr_keyword">return</strong> add(BigInteger.valueOf(l));
+<a class="jxr_linenumber" name="L507" href="#L507">507</a>     }
+<a class="jxr_linenumber" name="L508" href="#L508">508</a> 
+<a class="jxr_linenumber" name="L509" href="#L509">509</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L510" href="#L510">510</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L511" href="#L511">511</a> <em class="jxr_javadoccomment">     * Adds the value of this fraction to another, returning the result in</em>
+<a class="jxr_linenumber" name="L512" href="#L512">512</a> <em class="jxr_javadoccomment">     * reduced form.</em>
+<a class="jxr_linenumber" name="L513" href="#L513">513</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L514" href="#L514">514</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L515" href="#L515">515</a> <em class="jxr_javadoccomment">     * @param fraction</em>
+<a class="jxr_linenumber" name="L516" href="#L516">516</a> <em class="jxr_javadoccomment">     *            the {@link BigFraction} to add, must not be &lt;code&gt;null&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L517" href="#L517">517</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values.</em>
+<a class="jxr_linenumber" name="L518" href="#L518">518</a> <em class="jxr_javadoccomment">     * @throws NullArgumentException if the {@link BigFraction} is {@code null}.</em>
+<a class="jxr_linenumber" name="L519" href="#L519">519</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L520" href="#L520">520</a>     @Override
+<a class="jxr_linenumber" name="L521" href="#L521">521</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> add(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> fraction) {
+<a class="jxr_linenumber" name="L522" href="#L522">522</a>         <strong class="jxr_keyword">if</strong> (fraction == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L523" href="#L523">523</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html">NullArgumentException</a>(LocalizedFormats.FRACTION);
+<a class="jxr_linenumber" name="L524" href="#L524">524</a>         }
+<a class="jxr_linenumber" name="L525" href="#L525">525</a>         <strong class="jxr_keyword">if</strong> (fraction.numerator.signum() == 0) {
+<a class="jxr_linenumber" name="L526" href="#L526">526</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
+<a class="jxr_linenumber" name="L527" href="#L527">527</a>         }
+<a class="jxr_linenumber" name="L528" href="#L528">528</a>         <strong class="jxr_keyword">if</strong> (numerator.signum() == 0) {
+<a class="jxr_linenumber" name="L529" href="#L529">529</a>             <strong class="jxr_keyword">return</strong> fraction;
+<a class="jxr_linenumber" name="L530" href="#L530">530</a>         }
 <a class="jxr_linenumber" name="L531" href="#L531">531</a> 
-<a class="jxr_linenumber" name="L532" href="#L532">532</a>     }
-<a class="jxr_linenumber" name="L533" href="#L533">533</a> 
-<a class="jxr_linenumber" name="L534" href="#L534">534</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L535" href="#L535">535</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L536" href="#L536">536</a> <em class="jxr_javadoccomment">     * Gets the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt;. This calculates the</em>
-<a class="jxr_linenumber" name="L537" href="#L537">537</a> <em class="jxr_javadoccomment">     * fraction as the numerator divided by denominator.</em>
-<a class="jxr_linenumber" name="L538" href="#L538">538</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L539" href="#L539">539</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L540" href="#L540">540</a> <em class="jxr_javadoccomment">     * @return the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L541" href="#L541">541</a> <em class="jxr_javadoccomment">     * @throws ArithmeticException</em>
-<a class="jxr_linenumber" name="L542" href="#L542">542</a> <em class="jxr_javadoccomment">     *             if the exact quotient does not have a terminating decimal</em>
-<a class="jxr_linenumber" name="L543" href="#L543">543</a> <em class="jxr_javadoccomment">     *             expansion.</em>
-<a class="jxr_linenumber" name="L544" href="#L544">544</a> <em class="jxr_javadoccomment">     * @see BigDecimal</em>
-<a class="jxr_linenumber" name="L545" href="#L545">545</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L546" href="#L546">546</a>     <strong class="jxr_keyword">public</strong> BigDecimal bigDecimalValue() {
-<a class="jxr_linenumber" name="L547" href="#L547">547</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> BigDecimal(numerator).divide(<strong class="jxr_keyword">new</strong> BigDecimal(denominator));
-<a class="jxr_linenumber" name="L548" href="#L548">548</a>     }
-<a class="jxr_linenumber" name="L549" href="#L549">549</a> 
-<a class="jxr_linenumber" name="L550" href="#L550">550</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L551" href="#L551">551</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L552" href="#L552">552</a> <em class="jxr_javadoccomment">     * Gets the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt; following the passed</em>
-<a class="jxr_linenumber" name="L553" href="#L553">553</a> <em class="jxr_javadoccomment">     * rounding mode. This calculates the fraction as the numerator divided by</em>
-<a class="jxr_linenumber" name="L554" href="#L554">554</a> <em class="jxr_javadoccomment">     * denominator.</em>
+<a class="jxr_linenumber" name="L532" href="#L532">532</a>         BigInteger num = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L533" href="#L533">533</a>         BigInteger den = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L534" href="#L534">534</a> 
+<a class="jxr_linenumber" name="L535" href="#L535">535</a>         <strong class="jxr_keyword">if</strong> (denominator.equals(fraction.denominator)) {
+<a class="jxr_linenumber" name="L536" href="#L536">536</a>             num = numerator.add(fraction.numerator);
+<a class="jxr_linenumber" name="L537" href="#L537">537</a>             den = denominator;
+<a class="jxr_linenumber" name="L538" href="#L538">538</a>         } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L539" href="#L539">539</a>             num = (numerator.multiply(fraction.denominator)).add((fraction.numerator).multiply(denominator));
+<a class="jxr_linenumber" name="L540" href="#L540">540</a>             den = denominator.multiply(fraction.denominator);
+<a class="jxr_linenumber" name="L541" href="#L541">541</a>         }
+<a class="jxr_linenumber" name="L542" href="#L542">542</a> 
+<a class="jxr_linenumber" name="L543" href="#L543">543</a>         <strong class="jxr_keyword">if</strong> (num.signum() == 0) {
+<a class="jxr_linenumber" name="L544" href="#L544">544</a>             <strong class="jxr_keyword">return</strong> ZERO;
+<a class="jxr_linenumber" name="L545" href="#L545">545</a>         }
+<a class="jxr_linenumber" name="L546" href="#L546">546</a> 
+<a class="jxr_linenumber" name="L547" href="#L547">547</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a>(num, den);
+<a class="jxr_linenumber" name="L548" href="#L548">548</a> 
+<a class="jxr_linenumber" name="L549" href="#L549">549</a>     }
+<a class="jxr_linenumber" name="L550" href="#L550">550</a> 
+<a class="jxr_linenumber" name="L551" href="#L551">551</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L552" href="#L552">552</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L553" href="#L553">553</a> <em class="jxr_javadoccomment">     * Gets the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt;. This calculates the</em>
+<a class="jxr_linenumber" name="L554" href="#L554">554</a> <em class="jxr_javadoccomment">     * fraction as the numerator divided by denominator.</em>
 <a class="jxr_linenumber" name="L555" href="#L555">555</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
 <a class="jxr_linenumber" name="L556" href="#L556">556</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L557" href="#L557">557</a> <em class="jxr_javadoccomment">     * @param roundingMode</em>
-<a class="jxr_linenumber" name="L558" href="#L558">558</a> <em class="jxr_javadoccomment">     *            rounding mode to apply. see {@link BigDecimal} constants.</em>
-<a class="jxr_linenumber" name="L559" href="#L559">559</a> <em class="jxr_javadoccomment">     * @return the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L560" href="#L560">560</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException</em>
-<a class="jxr_linenumber" name="L561" href="#L561">561</a> <em class="jxr_javadoccomment">     *             if {@code roundingMode} does not represent a valid rounding</em>
-<a class="jxr_linenumber" name="L562" href="#L562">562</a> <em class="jxr_javadoccomment">     *             mode.</em>
-<a class="jxr_linenumber" name="L563" href="#L563">563</a> <em class="jxr_javadoccomment">     * @see BigDecimal</em>
-<a class="jxr_linenumber" name="L564" href="#L564">564</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L565" href="#L565">565</a>     <strong class="jxr_keyword">public</strong> BigDecimal bigDecimalValue(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> roundingMode) {
-<a class="jxr_linenumber" name="L566" href="#L566">566</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> BigDecimal(numerator).divide(<strong class="jxr_keyword">new</strong> BigDecimal(denominator), roundingMode);
-<a class="jxr_linenumber" name="L567" href="#L567">567</a>     }
-<a class="jxr_linenumber" name="L568" href="#L568">568</a> 
-<a class="jxr_linenumber" name="L569" href="#L569">569</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L570" href="#L570">570</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L571" href="#L571">571</a> <em class="jxr_javadoccomment">     * Gets the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt; following the passed scale</em>
-<a class="jxr_linenumber" name="L572" href="#L572">572</a> <em class="jxr_javadoccomment">     * and rounding mode. This calculates the fraction as the numerator divided</em>
-<a class="jxr_linenumber" name="L573" href="#L573">573</a> <em class="jxr_javadoccomment">     * by denominator.</em>
-<a class="jxr_linenumber" name="L574" href="#L574">574</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L575" href="#L575">575</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L576" href="#L576">576</a> <em class="jxr_javadoccomment">     * @param scale</em>
-<a class="jxr_linenumber" name="L577" href="#L577">577</a> <em class="jxr_javadoccomment">     *            scale of the &lt;code&gt;BigDecimal&lt;/code&gt; quotient to be returned.</em>
-<a class="jxr_linenumber" name="L578" href="#L578">578</a> <em class="jxr_javadoccomment">     *            see {@link BigDecimal} for more information.</em>
-<a class="jxr_linenumber" name="L579" href="#L579">579</a> <em class="jxr_javadoccomment">     * @param roundingMode</em>
-<a class="jxr_linenumber" name="L580" href="#L580">580</a> <em class="jxr_javadoccomment">     *            rounding mode to apply. see {@link BigDecimal} constants.</em>
-<a class="jxr_linenumber" name="L581" href="#L581">581</a> <em class="jxr_javadoccomment">     * @return the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L582" href="#L582">582</a> <em class="jxr_javadoccomment">     * @see BigDecimal</em>
-<a class="jxr_linenumber" name="L583" href="#L583">583</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L584" href="#L584">584</a>     <strong class="jxr_keyword">public</strong> BigDecimal bigDecimalValue(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> scale, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> roundingMode) {
-<a class="jxr_linenumber" name="L585" href="#L585">585</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> BigDecimal(numerator).divide(<strong class="jxr_keyword">new</strong> BigDecimal(denominator), scale, roundingMode);
-<a class="jxr_linenumber" name="L586" href="#L586">586</a>     }
-<a class="jxr_linenumber" name="L587" href="#L587">587</a> 
-<a class="jxr_linenumber" name="L588" href="#L588">588</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L589" href="#L589">589</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L590" href="#L590">590</a> <em class="jxr_javadoccomment">     * Compares this object to another based on size.</em>
+<a class="jxr_linenumber" name="L557" href="#L557">557</a> <em class="jxr_javadoccomment">     * @return the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L558" href="#L558">558</a> <em class="jxr_javadoccomment">     * @throws ArithmeticException</em>
+<a class="jxr_linenumber" name="L559" href="#L559">559</a> <em class="jxr_javadoccomment">     *             if the exact quotient does not have a terminating decimal</em>
+<a class="jxr_linenumber" name="L560" href="#L560">560</a> <em class="jxr_javadoccomment">     *             expansion.</em>
+<a class="jxr_linenumber" name="L561" href="#L561">561</a> <em class="jxr_javadoccomment">     * @see BigDecimal</em>
+<a class="jxr_linenumber" name="L562" href="#L562">562</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L563" href="#L563">563</a>     <strong class="jxr_keyword">public</strong> BigDecimal bigDecimalValue() {
+<a class="jxr_linenumber" name="L564" href="#L564">564</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> BigDecimal(numerator).divide(<strong class="jxr_keyword">new</strong> BigDecimal(denominator));
+<a class="jxr_linenumber" name="L565" href="#L565">565</a>     }
+<a class="jxr_linenumber" name="L566" href="#L566">566</a> 
+<a class="jxr_linenumber" name="L567" href="#L567">567</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L568" href="#L568">568</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L569" href="#L569">569</a> <em class="jxr_javadoccomment">     * Gets the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt; following the passed</em>
+<a class="jxr_linenumber" name="L570" href="#L570">570</a> <em class="jxr_javadoccomment">     * rounding mode. This calculates the fraction as the numerator divided by</em>
+<a class="jxr_linenumber" name="L571" href="#L571">571</a> <em class="jxr_javadoccomment">     * denominator.</em>
+<a class="jxr_linenumber" name="L572" href="#L572">572</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L573" href="#L573">573</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L574" href="#L574">574</a> <em class="jxr_javadoccomment">     * @param roundingMode</em>
+<a class="jxr_linenumber" name="L575" href="#L575">575</a> <em class="jxr_javadoccomment">     *            rounding mode to apply. see {@link BigDecimal} constants.</em>
+<a class="jxr_linenumber" name="L576" href="#L576">576</a> <em class="jxr_javadoccomment">     * @return the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L577" href="#L577">577</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException</em>
+<a class="jxr_linenumber" name="L578" href="#L578">578</a> <em class="jxr_javadoccomment">     *             if {@code roundingMode} does not represent a valid rounding</em>
+<a class="jxr_linenumber" name="L579" href="#L579">579</a> <em class="jxr_javadoccomment">     *             mode.</em>
+<a class="jxr_linenumber" name="L580" href="#L580">580</a> <em class="jxr_javadoccomment">     * @see BigDecimal</em>
+<a class="jxr_linenumber" name="L581" href="#L581">581</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L582" href="#L582">582</a>     <strong class="jxr_keyword">public</strong> BigDecimal bigDecimalValue(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> roundingMode) {
+<a class="jxr_linenumber" name="L583" href="#L583">583</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> BigDecimal(numerator).divide(<strong class="jxr_keyword">new</strong> BigDecimal(denominator), roundingMode);
+<a class="jxr_linenumber" name="L584" href="#L584">584</a>     }
+<a class="jxr_linenumber" name="L585" href="#L585">585</a> 
+<a class="jxr_linenumber" name="L586" href="#L586">586</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L587" href="#L587">587</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L588" href="#L588">588</a> <em class="jxr_javadoccomment">     * Gets the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt; following the passed scale</em>
+<a class="jxr_linenumber" name="L589" href="#L589">589</a> <em class="jxr_javadoccomment">     * and rounding mode. This calculates the fraction as the numerator divided</em>
+<a class="jxr_linenumber" name="L590" href="#L590">590</a> <em class="jxr_javadoccomment">     * by denominator.</em>
 <a class="jxr_linenumber" name="L591" href="#L591">591</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
 <a class="jxr_linenumber" name="L592" href="#L592">592</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L593" href="#L593">593</a> <em class="jxr_javadoccomment">     * @param object</em>
-<a class="jxr_linenumber" name="L594" href="#L594">594</a> <em class="jxr_javadoccomment">     *            the object to compare to, must not be &lt;code&gt;null&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L595" href="#L595">595</a> <em class="jxr_javadoccomment">     * @return -1 if this is less than {@code object}, +1 if this is greater</em>
-<a class="jxr_linenumber" name="L596" href="#L596">596</a> <em class="jxr_javadoccomment">     *         than {@code object}, 0 if they are equal.</em>
-<a class="jxr_linenumber" name="L597" href="#L597">597</a> <em class="jxr_javadoccomment">     * @see java.lang.Comparable#compareTo(java.lang.Object)</em>
-<a class="jxr_linenumber" name="L598" href="#L598">598</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L599" href="#L599">599</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> compareTo(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> object) {
-<a class="jxr_linenumber" name="L600" href="#L600">600</a>         BigInteger nOd = numerator.multiply(object.denominator);
-<a class="jxr_linenumber" name="L601" href="#L601">601</a>         BigInteger dOn = denominator.multiply(object.numerator);
-<a class="jxr_linenumber" name="L602" href="#L602">602</a>         <strong class="jxr_keyword">return</strong> nOd.compareTo(dOn);
+<a class="jxr_linenumber" name="L593" href="#L593">593</a> <em class="jxr_javadoccomment">     * @param scale</em>
+<a class="jxr_linenumber" name="L594" href="#L594">594</a> <em class="jxr_javadoccomment">     *            scale of the &lt;code&gt;BigDecimal&lt;/code&gt; quotient to be returned.</em>
+<a class="jxr_linenumber" name="L595" href="#L595">595</a> <em class="jxr_javadoccomment">     *            see {@link BigDecimal} for more information.</em>
+<a class="jxr_linenumber" name="L596" href="#L596">596</a> <em class="jxr_javadoccomment">     * @param roundingMode</em>
+<a class="jxr_linenumber" name="L597" href="#L597">597</a> <em class="jxr_javadoccomment">     *            rounding mode to apply. see {@link BigDecimal} constants.</em>
+<a class="jxr_linenumber" name="L598" href="#L598">598</a> <em class="jxr_javadoccomment">     * @return the fraction as a &lt;code&gt;BigDecimal&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L599" href="#L599">599</a> <em class="jxr_javadoccomment">     * @see BigDecimal</em>
+<a class="jxr_linenumber" name="L600" href="#L600">600</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L601" href="#L601">601</a>     <strong class="jxr_keyword">public</strong> BigDecimal bigDecimalValue(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> scale, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> roundingMode) {
+<a class="jxr_linenumber" name="L602" href="#L602">602</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> BigDecimal(numerator).divide(<strong class="jxr_keyword">new</strong> BigDecimal(denominator), scale, roundingMode);
 <a class="jxr_linenumber" name="L603" href="#L603">603</a>     }
 <a class="jxr_linenumber" name="L604" href="#L604">604</a> 
 <a class="jxr_linenumber" name="L605" href="#L605">605</a>     <em class="jxr_javadoccomment">/**</em>
 <a class="jxr_linenumber" name="L606" href="#L606">606</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L607" href="#L607">607</a> <em class="jxr_javadoccomment">     * Divide the value of this fraction by the passed {@code BigInteger},</em>
-<a class="jxr_linenumber" name="L608" href="#L608">608</a> <em class="jxr_javadoccomment">     * ie {@code this * 1 / bg}, returning the result in reduced form.</em>
-<a class="jxr_linenumber" name="L609" href="#L609">609</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L610" href="#L610">610</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L611" href="#L611">611</a> <em class="jxr_javadoccomment">     * @param bg the {@code BigInteger} to divide by, must not be {@code null}</em>
-<a class="jxr_linenumber" name="L612" href="#L612">612</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values</em>
-<a class="jxr_linenumber" name="L613" href="#L613">613</a> <em class="jxr_javadoccomment">     * @throws NullArgumentException if the {@code BigInteger} is {@code null}</em>
-<a class="jxr_linenumber" name="L614" href="#L614">614</a> <em class="jxr_javadoccomment">     * @throws MathArithmeticException if the fraction to divide by is zero</em>
+<a class="jxr_linenumber" name="L607" href="#L607">607</a> <em class="jxr_javadoccomment">     * Compares this object to another based on size.</em>
+<a class="jxr_linenumber" name="L608" href="#L608">608</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L609" href="#L609">609</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L610" href="#L610">610</a> <em class="jxr_javadoccomment">     * @param object</em>
+<a class="jxr_linenumber" name="L611" href="#L611">611</a> <em class="jxr_javadoccomment">     *            the object to compare to, must not be &lt;code&gt;null&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L612" href="#L612">612</a> <em class="jxr_javadoccomment">     * @return -1 if this is less than {@code object}, +1 if this is greater</em>
+<a class="jxr_linenumber" name="L613" href="#L613">613</a> <em class="jxr_javadoccomment">     *         than {@code object}, 0 if they are equal.</em>
+<a class="jxr_linenumber" name="L614" href="#L614">614</a> <em class="jxr_javadoccomment">     * @see java.lang.Comparable#compareTo(java.lang.Object)</em>
 <a class="jxr_linenumber" name="L615" href="#L615">615</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L616" href="#L616">616</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> divide(<strong class="jxr_keyword">final</strong> BigInteger bg) {
-<a class="jxr_linenumber" name="L617" href="#L617">617</a>         <strong class="jxr_keyword">if</strong> (bg == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L618" href="#L618">618</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html">NullArgumentException</a>(LocalizedFormats.FRACTION);
-<a class="jxr_linenumber" name="L619" href="#L619">619</a>         }
-<a class="jxr_linenumber" name="L620" href="#L620">620</a>         <strong class="jxr_keyword">if</strong> (BigInteger.ZERO.equals(bg)) {
-<a class="jxr_linenumber" name="L621" href="#L621">621</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/MathArithmeticException.html">MathArithmeticException</a>(LocalizedFormats.ZERO_DENOMINATOR);
-<a class="jxr_linenumber" name="L622" href="#L622">622</a>         }
-<a class="jxr_linenumber" name="L623" href="#L623">623</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a>(numerator, denominator.multiply(bg));
-<a class="jxr_linenumber" name="L624" href="#L624">624</a>     }
-<a class="jxr_linenumber" name="L625" href="#L625">625</a> 
-<a class="jxr_linenumber" name="L626" href="#L626">626</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L627" href="#L627">627</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L628" href="#L628">628</a> <em class="jxr_javadoccomment">     * Divide the value of this fraction by the passed {@code int}, ie</em>
-<a class="jxr_linenumber" name="L629" href="#L629">629</a> <em class="jxr_javadoccomment">     * {@code this * 1 / i}, returning the result in reduced form.</em>
-<a class="jxr_linenumber" name="L630" href="#L630">630</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L631" href="#L631">631</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L632" href="#L632">632</a> <em class="jxr_javadoccomment">     * @param i the {@code int} to divide by</em>
-<a class="jxr_linenumber" name="L633" href="#L633">633</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values</em>
-<a class="jxr_linenumber" name="L634" href="#L634">634</a> <em class="jxr_javadoccomment">     * @throws MathArithmeticException if the fraction to divide by is zero</em>
-<a class="jxr_linenumber" name="L635" href="#L635">635</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L636" href="#L636">636</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> divide(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> i) {
-<a class="jxr_linenumber" name="L637" href="#L637">637</a>         <strong class="jxr_keyword">return</strong> divide(BigInteger.valueOf(i));
-<a class="jxr_linenumber" name="L638" href="#L638">638</a>     }
-<a class="jxr_linenumber" name="L639" href="#L639">639</a> 
-<a class="jxr_linenumber" name="L640" href="#L640">640</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L641" href="#L641">641</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L642" href="#L642">642</a> <em class="jxr_javadoccomment">     * Divide the value of this fraction by the passed {@code long}, ie</em>
-<a class="jxr_linenumber" name="L643" href="#L643">643</a> <em class="jxr_javadoccomment">     * {@code this * 1 / l}, returning the result in reduced form.</em>
-<a class="jxr_linenumber" name="L644" href="#L644">644</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L645" href="#L645">645</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L646" href="#L646">646</a> <em class="jxr_javadoccomment">     * @param l the {@code long} to divide by</em>
-<a class="jxr_linenumber" name="L647" href="#L647">647</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values</em>
-<a class="jxr_linenumber" name="L648" href="#L648">648</a> <em class="jxr_javadoccomment">     * @throws MathArithmeticException if the fraction to divide by is zero</em>
-<a class="jxr_linenumber" name="L649" href="#L649">649</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L650" href="#L650">650</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> divide(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> l) {
-<a class="jxr_linenumber" name="L651" href="#L651">651</a>         <strong class="jxr_keyword">return</strong> divide(BigInteger.valueOf(l));
-<a class="jxr_linenumber" name="L652" href="#L652">652</a>     }
-<a class="jxr_linenumber" name="L653" href="#L653">653</a> 
-<a class="jxr_linenumber" name="L654" href="#L654">654</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L655" href="#L655">655</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L656" href="#L656">656</a> <em class="jxr_javadoccomment">     * Divide the value of this fraction by another, returning the result in</em>
-<a class="jxr_linenumber" name="L657" href="#L657">657</a> <em class="jxr_javadoccomment">     * reduced form.</em>
-<a class="jxr_linenumber" name="L658" href="#L658">658</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L659" href="#L659">659</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L660" href="#L660">660</a> <em class="jxr_javadoccomment">     * @param fraction Fraction to divide by, must not be {@code null}.</em>
-<a class="jxr_linenumber" name="L661" href="#L661">661</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values.</em>
-<a class="jxr_linenumber" name="L662" href="#L662">662</a> <em class="jxr_javadoccomment">     * @throws NullArgumentException if the {@code fraction} is {@code null}.</em>
-<a class="jxr_linenumber" name="L663" href="#L663">663</a> <em class="jxr_javadoccomment">     * @throws MathArithmeticException if the fraction to divide by is zero</em>
-<a class="jxr_linenumber" name="L664" href="#L664">664</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L665" href="#L665">665</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> divide(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> fraction) {
-<a class="jxr_linenumber" name="L666" href="#L666">666</a>         <strong class="jxr_keyword">if</strong> (fraction == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="L667" href="#L667">667</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html">NullArgumentException</a>(LocalizedFormats.FRACTION);
-<a class="jxr_linenumber" name="L668" href="#L668">668</a>         }
-<a class="jxr_linenumber" name="L669" href="#L669">669</a>         <strong class="jxr_keyword">if</strong> (BigInteger.ZERO.equals(fraction.numerator)) {
-<a class="jxr_linenumber" name="L670" href="#L670">670</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/MathArithmeticException.html">MathArithmeticException</a>(LocalizedFormats.ZERO_DENOMINATOR);
-<a class="jxr_linenumber" name="L671" href="#L671">671</a>         }
-<a class="jxr_linenumber" name="L672" href="#L672">672</a> 
-<a class="jxr_linenumber" name="L673" href="#L673">673</a>         <strong class="jxr_keyword">return</strong> multiply(fraction.reciprocal());
-<a class="jxr_linenumber" name="L674" href="#L674">674</a>     }
-<a class="jxr_linenumber" name="L675" href="#L675">675</a> 
-<a class="jxr_linenumber" name="L676" href="#L676">676</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L677" href="#L677">677</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L678" href="#L678">678</a> <em class="jxr_javadoccomment">     * Gets the fraction as a {@code double}. This calculates the fraction as</em>
-<a class="jxr_linenumber" name="L679" href="#L679">679</a> <em class="jxr_javadoccomment">     * the numerator divided by denominator.</em>
-<a class="jxr_linenumber" name="L680" href="#L680">680</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L681" href="#L681">681</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L682" href="#L682">682</a> <em class="jxr_javadoccomment">     * @return the fraction as a {@code double}</em>
-<a class="jxr_linenumber" name="L683" href="#L683">683</a> <em class="jxr_javadoccomment">     * @see java.lang.Number#doubleValue()</em>
-<a class="jxr_linenumber" name="L684" href="#L684">684</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L685" href="#L685">685</a>     @Override
-<a class="jxr_linenumber" name="L686" href="#L686">686</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> doubleValue() {
-<a class="jxr_linenumber" name="L687" href="#L687">687</a>         <strong class="jxr_keyword">double</strong> result = numerator.doubleValue() / denominator.doubleValue();
-<a class="jxr_linenumber" name="L688" href="#L688">688</a>         <strong class="jxr_keyword">if</strong> (Double.isNaN(result)) {
-<a class="jxr_linenumber" name="L689" href="#L689">689</a>             <em class="jxr_comment">// Numerator and/or denominator must be out of range:</em>
-<a class="jxr_linenumber" name="L690" href="#L690">690</a>             <em class="jxr_comment">// Calculate how far to shift them to put them in range.</em>
-<a class="jxr_linenumber" name="L691" href="#L691">691</a>             <strong class="jxr_keyword">int</strong> shift = FastMath.max(numerator.bitLength(),
-<a class="jxr_linenumber" name="L692" href="#L692">692</a>                                      denominator.bitLength()) - FastMath.getExponent(Double.MAX_VALUE);
-<a class="jxr_linenumber" name="L693" href="#L693">693</a>             result = numerator.shiftRight(shift).doubleValue() /
-<a class="jxr_linenumber" name="L694" href="#L694">694</a>                 denominator.shiftRight(shift).doubleValue();
-<a class="jxr_linenumber" name="L695" href="#L695">695</a>         }
-<a class="jxr_linenumber" name="L696" href="#L696">696</a>         <strong class="jxr_keyword">return</strong> result;
-<a class="jxr_linenumber" name="L697" href="#L697">697</a>     }
-<a class="jxr_linenumber" name="L698" href="#L698">698</a> 
-<a class="jxr_linenumber" name="L699" href="#L699">699</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L700" href="#L700">700</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L701" href="#L701">701</a> <em class="jxr_javadoccomment">     * Test for the equality of two fractions. If the lowest term numerator and</em>
-<a class="jxr_linenumber" name="L702" href="#L702">702</a> <em class="jxr_javadoccomment">     * denominators are the same for both fractions, the two fractions are</em>
-<a class="jxr_linenumber" name="L703" href="#L703">703</a> <em class="jxr_javadoccomment">     * considered to be equal.</em>
-<a class="jxr_linenumber" name="L704" href="#L704">704</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L705" href="#L705">705</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L706" href="#L706">706</a> <em class="jxr_javadoccomment">     * @param other</em>
-<a class="jxr_linenumber" name="L707" href="#L707">707</a> <em class="jxr_javadoccomment">     *            fraction to test for equality to this fraction, can be</em>
-<a class="jxr_linenumber" name="L708" href="#L708">708</a> <em class="jxr_javadoccomment">     *            &lt;code&gt;null&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L709" href="#L709">709</a> <em class="jxr_javadoccomment">     * @return true if two fractions are equal, false if object is</em>
-<a class="jxr_linenumber" name="L710" href="#L710">710</a> <em class="jxr_javadoccomment">     *         &lt;code&gt;null&lt;/code&gt;, not an instance of {@link BigFraction}, or not</em>
-<a class="jxr_linenumber" name="L711" href="#L711">711</a> <em class="jxr_javadoccomment">     *         equal to this fraction instance.</em>
-<a class="jxr_linenumber" name="L712" href="#L712">712</a> <em class="jxr_javadoccomment">     * @see java.lang.Object#equals(java.lang.Object)</em>
-<a class="jxr_linenumber" name="L713" href="#L713">713</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L714" href="#L714">714</a>     @Override
-<a class="jxr_linenumber" name="L715" href="#L715">715</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(<strong class="jxr_keyword">final</strong> Object other) {
-<a class="jxr_linenumber" name="L716" href="#L716">716</a>         <strong class="jxr_keyword">boolean</strong> ret = false;
-<a class="jxr_linenumber" name="L717" href="#L717">717</a> 
-<a class="jxr_linenumber" name="L718" href="#L718">718</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong> == other) {
-<a class="jxr_linenumber" name="L719" href="#L719">719</a>             ret = <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L720" href="#L720">720</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (other instanceof BigFraction) {
-<a class="jxr_linenumber" name="L721" href="#L721">721</a>             <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> rhs = ((BigFraction) other).reduce();
-<a class="jxr_linenumber" name="L722" href="#L722">722</a>             <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> thisOne = <strong class="jxr_keyword">this</strong>.reduce();
-<a class="jxr_linenumber" name="L723" href="#L723">723</a>             ret = thisOne.numerator.equals(rhs.numerator) &amp;&amp; thisOne.denominator.equals(rhs.denominator);
-<a class="jxr_linenumber" name="L724" href="#L724">724</a>         }
-<a class="jxr_linenumber" name="L725" href="#L725">725</a> 
-<a class="jxr_linenumber" name="L726" href="#L726">726</a>         <strong class="jxr_keyword">return</strong> ret;
-<a class="jxr_linenumber" name="L727" href="#L727">727</a>     }
-<a class="jxr_linenumber" name="L728" href="#L728">728</a> 
-<a class="jxr_linenumber" name="L729" href="#L729">729</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L730" href="#L730">730</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L731" href="#L731">731</a> <em class="jxr_javadoccomment">     * Gets the fraction as a {@code float}. This calculates the fraction as</em>
-<a class="jxr_linenumber" name="L732" href="#L732">732</a> <em class="jxr_javadoccomment">     * the numerator divided by denominator.</em>
-<a class="jxr_linenumber" name="L733" href="#L733">733</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L734" href="#L734">734</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L735" href="#L735">735</a> <em class="jxr_javadoccomment">     * @return the fraction as a {@code float}.</em>
-<a class="jxr_linenumber" name="L736" href="#L736">736</a> <em class="jxr_javadoccomment">     * @see java.lang.Number#floatValue()</em>
-<a class="jxr_linenumber" name="L737" href="#L737">737</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L738" href="#L738">738</a>     @Override
-<a class="jxr_linenumber" name="L739" href="#L739">739</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">float</strong> floatValue() {
-<a class="jxr_linenumber" name="L740" href="#L740">740</a>         <strong class="jxr_keyword">float</strong> result = numerator.floatValue() / denominator.floatValue();
-<a class="jxr_linenumber" name="L741" href="#L741">741</a>         <strong class="jxr_keyword">if</strong> (Double.isNaN(result)) {
-<a class="jxr_linenumber" name="L742" href="#L742">742</a>             <em class="jxr_comment">// Numerator and/or denominator must be out of range:</em>
-<a class="jxr_linenumber" name="L743" href="#L743">743</a>             <em class="jxr_comment">// Calculate how far to shift them to put them in range.</em>
-<a class="jxr_linenumber" name="L744" href="#L744">744</a>             <strong class="jxr_keyword">int</strong> shift = FastMath.max(numerator.bitLength(),
-<a class="jxr_linenumber" name="L745" href="#L745">745</a>                                      denominator.bitLength()) - FastMath.getExponent(Float.MAX_VALUE);
-<a class="jxr_linenumber" name="L746" href="#L746">746</a>             result = numerator.shiftRight(shift).floatValue() /
-<a class="jxr_linenumber" name="L747" href="#L747">747</a>                 denominator.shiftRight(shift).floatValue();
-<a class="jxr_linenumber" name="L748" href="#L748">748</a>         }
-<a class="jxr_linenumber" name="L749" href="#L749">749</a>         <strong class="jxr_keyword">return</strong> result;
-<a class="jxr_linenumber" name="L750" href="#L750">750</a>     }
-<a class="jxr_linenumber" name="L751" href="#L751">751</a> 
-<a class="jxr_linenumber" name="L752" href="#L752">752</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L753" href="#L753">753</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L754" href="#L754">754</a> <em class="jxr_javadoccomment">     * Access the denominator as a &lt;code&gt;BigInteger&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L755" href="#L755">755</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L756" href="#L756">756</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L757" href="#L757">757</a> <em class="jxr_javadoccomment">     * @return the denominator as a &lt;code&gt;BigInteger&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L758" href="#L758">758</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L759" href="#L759">759</a>     <strong class="jxr_keyword">public</strong> BigInteger getDenominator() {
-<a class="jxr_linenumber" name="L760" href="#L760">760</a>         <strong class="jxr_keyword">return</strong> denominator;
-<a class="jxr_linenumber" name="L761" href="#L761">761</a>     }
-<a class="jxr_linenumber" name="L762" href="#L762">762</a> 
-<a class="jxr_linenumber" name="L763" href="#L763">763</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L764" href="#L764">764</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L765" href="#L765">765</a> <em class="jxr_javadoccomment">     * Access the denominator as a {@code int}.</em>
-<a class="jxr_linenumber" name="L766" href="#L766">766</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L767" href="#L767">767</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L768" href="#L768">768</a> <em class="jxr_javadoccomment">     * @return the denominator as a {@code int}.</em>
-<a class="jxr_linenumber" name="L769" href="#L769">769</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L770" href="#L770">770</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getDenominatorAsInt() {
-<a class="jxr_linenumber" name="L771" href="#L771">771</a>         <strong class="jxr_keyword">return</strong> denominator.intValue();
-<a class="jxr_linenumber" name="L772" href="#L772">772</a>     }
-<a class="jxr_linenumber" name="L773" href="#L773">773</a> 
-<a class="jxr_linenumber" name="L774" href="#L774">774</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L775" href="#L775">775</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L776" href="#L776">776</a> <em class="jxr_javadoccomment">     * Access the denominator as a {@code long}.</em>
-<a class="jxr_linenumber" name="L777" href="#L777">777</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L778" href="#L778">778</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L779" href="#L779">779</a> <em class="jxr_javadoccomment">     * @return the denominator as a {@code long}.</em>
-<a class="jxr_linenumber" name="L780" href="#L780">780</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L781" href="#L781">781</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> getDenominatorAsLong() {
-<a class="jxr_linenumber" name="L782" href="#L782">782</a>         <strong class="jxr_keyword">return</strong> denominator.longValue();
-<a class="jxr_linenumber" name="L783" href="#L783">783</a>     }
-<a class="jxr_linenumber" name="L784" href="#L784">784</a> 
-<a class="jxr_linenumber" name="L785" href="#L785">785</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L786" href="#L786">786</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L787" href="#L787">787</a> <em class="jxr_javadoccomment">     * Access the numerator as a &lt;code&gt;BigInteger&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L788" href="#L788">788</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L789" href="#L789">789</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L790" href="#L790">790</a> <em class="jxr_javadoccomment">     * @return the numerator as a &lt;code&gt;BigInteger&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="L791" href="#L791">791</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L792" href="#L792">792</a>     <strong class="jxr_keyword">public</strong> BigInteger getNumerator() {
-<a class="jxr_linenumber" name="L793" href="#L793">793</a>         <strong class="jxr_keyword">return</strong> numerator;
-<a class="jxr_linenumber" name="L794" href="#L794">794</a>     }
-<a class="jxr_linenumber" name="L795" href="#L795">795</a> 
-<a class="jxr_linenumber" name="L796" href="#L796">796</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L797" href="#L797">797</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L798" href="#L798">798</a> <em class="jxr_javadoccomment">     * Access the numerator as a {@code int}.</em>
-<a class="jxr_linenumber" name="L799" href="#L799">799</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L800" href="#L800">800</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L801" href="#L801">801</a> <em class="jxr_javadoccomment">     * @return the numerator as a {@code int}.</em>
-<a class="jxr_linenumber" name="L802" href="#L802">802</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L803" href="#L803">803</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getNumeratorAsInt() {
-<a class="jxr_linenumber" name="L804" href="#L804">804</a>         <strong class="jxr_keyword">return</strong> numerator.intValue();
-<a class="jxr_linenumber" name="L805" href="#L805">805</a>     }
-<a class="jxr_linenumber" name="L806" href="#L806">806</a> 
-<a class="jxr_linenumber" name="L807" href="#L807">807</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L808" href="#L808">808</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L809" href="#L809">809</a> <em class="jxr_javadoccomment">     * Access the numerator as a {@code long}.</em>
-<a class="jxr_linenumber" name="L810" href="#L810">810</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L811" href="#L811">811</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L812" href="#L812">812</a> <em class="jxr_javadoccomment">     * @return the numerator as a {@code long}.</em>
-<a class="jxr_linenumber" name="L813" href="#L813">813</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L814" href="#L814">814</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> getNumeratorAsLong() {
-<a class="jxr_linenumber" name="L815" href="#L815">815</a>         <strong class="jxr_keyword">return</strong> numerator.longValue();
-<a class="jxr_linenumber" name="L816" href="#L816">816</a>     }
-<a class="jxr_linenumber" name="L817" href="#L817">817</a> 
-<a class="jxr_linenumber" name="L818" href="#L818">818</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L819" href="#L819">819</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="L820" href="#L820">820</a> <em class="jxr_javadoccomment">     * Gets a hashCode for the fraction.</em>
-<a class="jxr_linenumber" name="L821" href="#L821">821</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
-<a class="jxr_linenumber" name="L822" href="#L822">822</a> <em class="jxr_javadoccomment">     *</em>
-<a class="jxr_linenumber" name="L823" href="#L823">823</a> <em class="jxr_javadoccomment">     * @return a hash code value for this object.</em>
-<a class="jxr_linenumber" name="L824" href="#L824">824</a> <em class="jxr_javadoccomment">     * @see java.lang.Object#hashCode()</em>
-<a class="jxr_linenumber" name="L825" href="#L825">825</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L826" href="#L826">826</a>     @Override
-<a class="jxr_linenumber" name="L827" href="#L827">827</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> hashCode() {
-<a class="jxr_linenumber" name="L828" href="#L828">828</a>         <strong class="jxr_keyword">return</strong> 37 * (37 * 17 + numerator.hashCode()) + denominator.hashCode();
+<a class="jxr_linenumber" name="L616" href="#L616">616</a>     @Override
+<a class="jxr_linenumber" name="L617" href="#L617">617</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> compareTo(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> object) {
+<a class="jxr_linenumber" name="L618" href="#L618">618</a>         <strong class="jxr_keyword">int</strong> lhsSigNum = numerator.signum();
+<a class="jxr_linenumber" name="L619" href="#L619">619</a>         <strong class="jxr_keyword">int</strong> rhsSigNum = object.numerator.signum();
+<a class="jxr_linenumber" name="L620" href="#L620">620</a> 
+<a class="jxr_linenumber" name="L621" href="#L621">621</a>         <strong class="jxr_keyword">if</strong> (lhsSigNum != rhsSigNum) {
+<a class="jxr_linenumber" name="L622" href="#L622">622</a>             <strong class="jxr_keyword">return</strong> (lhsSigNum &gt; rhsSigNum) ? 1 : -1;
+<a class="jxr_linenumber" name="L623" href="#L623">623</a>         }
+<a class="jxr_linenumber" name="L624" href="#L624">624</a>         <strong class="jxr_keyword">if</strong> (lhsSigNum == 0) {
+<a class="jxr_linenumber" name="L625" href="#L625">625</a>             <strong class="jxr_keyword">return</strong> 0;
+<a class="jxr_linenumber" name="L626" href="#L626">626</a>         }
+<a class="jxr_linenumber" name="L627" href="#L627">627</a> 
+<a class="jxr_linenumber" name="L628" href="#L628">628</a>         BigInteger nOd = numerator.multiply(object.denominator);
+<a class="jxr_linenumber" name="L629" href="#L629">629</a>         BigInteger dOn = denominator.multiply(object.numerator);
+<a class="jxr_linenumber" name="L630" href="#L630">630</a>         <strong class="jxr_keyword">return</strong> nOd.compareTo(dOn);
+<a class="jxr_linenumber" name="L631" href="#L631">631</a>     }
+<a class="jxr_linenumber" name="L632" href="#L632">632</a> 
+<a class="jxr_linenumber" name="L633" href="#L633">633</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L634" href="#L634">634</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L635" href="#L635">635</a> <em class="jxr_javadoccomment">     * Divide the value of this fraction by the passed {@code BigInteger},</em>
+<a class="jxr_linenumber" name="L636" href="#L636">636</a> <em class="jxr_javadoccomment">     * ie {@code this * 1 / bg}, returning the result in reduced form.</em>
+<a class="jxr_linenumber" name="L637" href="#L637">637</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L638" href="#L638">638</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L639" href="#L639">639</a> <em class="jxr_javadoccomment">     * @param bg the {@code BigInteger} to divide by, must not be {@code null}</em>
+<a class="jxr_linenumber" name="L640" href="#L640">640</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values</em>
+<a class="jxr_linenumber" name="L641" href="#L641">641</a> <em class="jxr_javadoccomment">     * @throws NullArgumentException if the {@code BigInteger} is {@code null}</em>
+<a class="jxr_linenumber" name="L642" href="#L642">642</a> <em class="jxr_javadoccomment">     * @throws MathArithmeticException if the fraction to divide by is zero</em>
+<a class="jxr_linenumber" name="L643" href="#L643">643</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L644" href="#L644">644</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> divide(<strong class="jxr_keyword">final</strong> BigInteger bg) {
+<a class="jxr_linenumber" name="L645" href="#L645">645</a>         <strong class="jxr_keyword">if</strong> (bg == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L646" href="#L646">646</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html">NullArgumentException</a>(LocalizedFormats.FRACTION);
+<a class="jxr_linenumber" name="L647" href="#L647">647</a>         }
+<a class="jxr_linenumber" name="L648" href="#L648">648</a>         <strong class="jxr_keyword">if</strong> (bg.signum() == 0) {
+<a class="jxr_linenumber" name="L649" href="#L649">649</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/MathArithmeticException.html">MathArithmeticException</a>(LocalizedFormats.ZERO_DENOMINATOR);
+<a class="jxr_linenumber" name="L650" href="#L650">650</a>         }
+<a class="jxr_linenumber" name="L651" href="#L651">651</a>         <strong class="jxr_keyword">if</strong> (numerator.signum() == 0) {
+<a class="jxr_linenumber" name="L652" href="#L652">652</a>             <strong class="jxr_keyword">return</strong> ZERO;
+<a class="jxr_linenumber" name="L653" href="#L653">653</a>         }
+<a class="jxr_linenumber" name="L654" href="#L654">654</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a>(numerator, denominator.multiply(bg));
+<a class="jxr_linenumber" name="L655" href="#L655">655</a>     }
+<a class="jxr_linenumber" name="L656" href="#L656">656</a> 
+<a class="jxr_linenumber" name="L657" href="#L657">657</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L658" href="#L658">658</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L659" href="#L659">659</a> <em class="jxr_javadoccomment">     * Divide the value of this fraction by the passed {@code int}, ie</em>
+<a class="jxr_linenumber" name="L660" href="#L660">660</a> <em class="jxr_javadoccomment">     * {@code this * 1 / i}, returning the result in reduced form.</em>
+<a class="jxr_linenumber" name="L661" href="#L661">661</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L662" href="#L662">662</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L663" href="#L663">663</a> <em class="jxr_javadoccomment">     * @param i the {@code int} to divide by</em>
+<a class="jxr_linenumber" name="L664" href="#L664">664</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values</em>
+<a class="jxr_linenumber" name="L665" href="#L665">665</a> <em class="jxr_javadoccomment">     * @throws MathArithmeticException if the fraction to divide by is zero</em>
+<a class="jxr_linenumber" name="L666" href="#L666">666</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L667" href="#L667">667</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> divide(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> i) {
+<a class="jxr_linenumber" name="L668" href="#L668">668</a>         <strong class="jxr_keyword">return</strong> divide(BigInteger.valueOf(i));
+<a class="jxr_linenumber" name="L669" href="#L669">669</a>     }
+<a class="jxr_linenumber" name="L670" href="#L670">670</a> 
+<a class="jxr_linenumber" name="L671" href="#L671">671</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L672" href="#L672">672</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L673" href="#L673">673</a> <em class="jxr_javadoccomment">     * Divide the value of this fraction by the passed {@code long}, ie</em>
+<a class="jxr_linenumber" name="L674" href="#L674">674</a> <em class="jxr_javadoccomment">     * {@code this * 1 / l}, returning the result in reduced form.</em>
+<a class="jxr_linenumber" name="L675" href="#L675">675</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L676" href="#L676">676</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L677" href="#L677">677</a> <em class="jxr_javadoccomment">     * @param l the {@code long} to divide by</em>
+<a class="jxr_linenumber" name="L678" href="#L678">678</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values</em>
+<a class="jxr_linenumber" name="L679" href="#L679">679</a> <em class="jxr_javadoccomment">     * @throws MathArithmeticException if the fraction to divide by is zero</em>
+<a class="jxr_linenumber" name="L680" href="#L680">680</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L681" href="#L681">681</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> divide(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> l) {
+<a class="jxr_linenumber" name="L682" href="#L682">682</a>         <strong class="jxr_keyword">return</strong> divide(BigInteger.valueOf(l));
+<a class="jxr_linenumber" name="L683" href="#L683">683</a>     }
+<a class="jxr_linenumber" name="L684" href="#L684">684</a> 
+<a class="jxr_linenumber" name="L685" href="#L685">685</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L686" href="#L686">686</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L687" href="#L687">687</a> <em class="jxr_javadoccomment">     * Divide the value of this fraction by another, returning the result in</em>
+<a class="jxr_linenumber" name="L688" href="#L688">688</a> <em class="jxr_javadoccomment">     * reduced form.</em>
+<a class="jxr_linenumber" name="L689" href="#L689">689</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L690" href="#L690">690</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L691" href="#L691">691</a> <em class="jxr_javadoccomment">     * @param fraction Fraction to divide by, must not be {@code null}.</em>
+<a class="jxr_linenumber" name="L692" href="#L692">692</a> <em class="jxr_javadoccomment">     * @return a {@link BigFraction} instance with the resulting values.</em>
+<a class="jxr_linenumber" name="L693" href="#L693">693</a> <em class="jxr_javadoccomment">     * @throws NullArgumentException if the {@code fraction} is {@code null}.</em>
+<a class="jxr_linenumber" name="L694" href="#L694">694</a> <em class="jxr_javadoccomment">     * @throws MathArithmeticException if the fraction to divide by is zero</em>
+<a class="jxr_linenumber" name="L695" href="#L695">695</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L696" href="#L696">696</a>     @Override
+<a class="jxr_linenumber" name="L697" href="#L697">697</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> divide(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> fraction) {
+<a class="jxr_linenumber" name="L698" href="#L698">698</a>         <strong class="jxr_keyword">if</strong> (fraction == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="L699" href="#L699">699</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/NullArgumentException.html">NullArgumentException</a>(LocalizedFormats.FRACTION);
+<a class="jxr_linenumber" name="L700" href="#L700">700</a>         }
+<a class="jxr_linenumber" name="L701" href="#L701">701</a>         <strong class="jxr_keyword">if</strong> (fraction.numerator.signum() == 0) {
+<a class="jxr_linenumber" name="L702" href="#L702">702</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/commons/math3/exception/MathArithmeticException.html">MathArithmeticException</a>(LocalizedFormats.ZERO_DENOMINATOR);
+<a class="jxr_linenumber" name="L703" href="#L703">703</a>         }
+<a class="jxr_linenumber" name="L704" href="#L704">704</a>         <strong class="jxr_keyword">if</strong> (numerator.signum() == 0) {
+<a class="jxr_linenumber" name="L705" href="#L705">705</a>             <strong class="jxr_keyword">return</strong> ZERO;
+<a class="jxr_linenumber" name="L706" href="#L706">706</a>         }
+<a class="jxr_linenumber" name="L707" href="#L707">707</a> 
+<a class="jxr_linenumber" name="L708" href="#L708">708</a>         <strong class="jxr_keyword">return</strong> multiply(fraction.reciprocal());
+<a class="jxr_linenumber" name="L709" href="#L709">709</a>     }
+<a class="jxr_linenumber" name="L710" href="#L710">710</a> 
+<a class="jxr_linenumber" name="L711" href="#L711">711</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L712" href="#L712">712</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L713" href="#L713">713</a> <em class="jxr_javadoccomment">     * Gets the fraction as a {@code double}. This calculates the fraction as</em>
+<a class="jxr_linenumber" name="L714" href="#L714">714</a> <em class="jxr_javadoccomment">     * the numerator divided by denominator.</em>
+<a class="jxr_linenumber" name="L715" href="#L715">715</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L716" href="#L716">716</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L717" href="#L717">717</a> <em class="jxr_javadoccomment">     * @return the fraction as a {@code double}</em>
+<a class="jxr_linenumber" name="L718" href="#L718">718</a> <em class="jxr_javadoccomment">     * @see java.lang.Number#doubleValue()</em>
+<a class="jxr_linenumber" name="L719" href="#L719">719</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L720" href="#L720">720</a>     @Override
+<a class="jxr_linenumber" name="L721" href="#L721">721</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">double</strong> doubleValue() {
+<a class="jxr_linenumber" name="L722" href="#L722">722</a>         <strong class="jxr_keyword">double</strong> result = numerator.doubleValue() / denominator.doubleValue();
+<a class="jxr_linenumber" name="L723" href="#L723">723</a>         <strong class="jxr_keyword">if</strong> (Double.isNaN(result)) {
+<a class="jxr_linenumber" name="L724" href="#L724">724</a>             <em class="jxr_comment">// Numerator and/or denominator must be out of range:</em>
+<a class="jxr_linenumber" name="L725" href="#L725">725</a>             <em class="jxr_comment">// Calculate how far to shift them to put them in range.</em>
+<a class="jxr_linenumber" name="L726" href="#L726">726</a>             <strong class="jxr_keyword">int</strong> shift = FastMath.max(numerator.bitLength(),
+<a class="jxr_linenumber" name="L727" href="#L727">727</a>                                      denominator.bitLength()) - FastMath.getExponent(Double.MAX_VALUE);
+<a class="jxr_linenumber" name="L728" href="#L728">728</a>             result = numerator.shiftRight(shift).doubleValue() /
+<a class="jxr_linenumber" name="L729" href="#L729">729</a>                 denominator.shiftRight(shift).doubleValue();
+<a class="jxr_linenumber" name="L730" href="#L730">730</a>         }
+<a class="jxr_linenumber" name="L731" href="#L731">731</a>         <strong class="jxr_keyword">return</strong> result;
+<a class="jxr_linenumber" name="L732" href="#L732">732</a>     }
+<a class="jxr_linenumber" name="L733" href="#L733">733</a> 
+<a class="jxr_linenumber" name="L734" href="#L734">734</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L735" href="#L735">735</a> <em class="jxr_javadoccomment">     * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L736" href="#L736">736</a> <em class="jxr_javadoccomment">     * Test for the equality of two fractions. If the lowest term numerator and</em>
+<a class="jxr_linenumber" name="L737" href="#L737">737</a> <em class="jxr_javadoccomment">     * denominators are the same for both fractions, the two fractions are</em>
+<a class="jxr_linenumber" name="L738" href="#L738">738</a> <em class="jxr_javadoccomment">     * considered to be equal.</em>
+<a class="jxr_linenumber" name="L739" href="#L739">739</a> <em class="jxr_javadoccomment">     * &lt;/p&gt;</em>
+<a class="jxr_linenumber" name="L740" href="#L740">740</a> <em class="jxr_javadoccomment">     *</em>
+<a class="jxr_linenumber" name="L741" href="#L741">741</a> <em class="jxr_javadoccomment">     * @param other</em>
+<a class="jxr_linenumber" name="L742" href="#L742">742</a> <em class="jxr_javadoccomment">     *            fraction to test for equality to this fraction, can be</em>
+<a class="jxr_linenumber" name="L743" href="#L743">743</a> <em class="jxr_javadoccomment">     *            &lt;code&gt;null&lt;/code&gt;.</em>
+<a class="jxr_linenumber" name="L744" href="#L744">744</a> <em class="jxr_javadoccomment">     * @return true if two fractions are equal, false if object is</em>
+<a class="jxr_linenumber" name="L745" href="#L745">745</a> <em class="jxr_javadoccomment">     *         &lt;code&gt;null&lt;/code&gt;, not an instance of {@link BigFraction}, or not</em>
+<a class="jxr_linenumber" name="L746" href="#L746">746</a> <em class="jxr_javadoccomment">     *         equal to this fraction instance.</em>
+<a class="jxr_linenumber" name="L747" href="#L747">747</a> <em class="jxr_javadoccomment">     * @see java.lang.Object#equals(java.lang.Object)</em>
+<a class="jxr_linenumber" name="L748" href="#L748">748</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L749" href="#L749">749</a>     @Override
+<a class="jxr_linenumber" name="L750" href="#L750">750</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> equals(<strong class="jxr_keyword">final</strong> Object other) {
+<a class="jxr_linenumber" name="L751" href="#L751">751</a>         <strong class="jxr_keyword">boolean</strong> ret = false;
+<a class="jxr_linenumber" name="L752" href="#L752">752</a> 
+<a class="jxr_linenumber" name="L753" href="#L753">753</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong> == other) {
+<a class="jxr_linenumber" name="L754" href="#L754">754</a>             ret = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L755" href="#L755">755</a>         } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (other instanceof BigFraction) {
+<a class="jxr_linenumber" name="L756" href="#L756">756</a>             <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> rhs = ((BigFraction) other).reduce();
+<a class="jxr_linenumber" name="L757" href="#L757">757</a>             <a href="../../../../../org/apache/commons/math3/fraction/BigFraction.html">BigFraction</a> thisOne = <strong class="jxr_keyword">this</strong>.reduce();

[... 788 lines stripped ...]


Mime
View raw message