Package org.apache.commons.math3.fraction

Examples of org.apache.commons.math3.fraction.BigFraction


    /**
     * @see BigFraction#BigFraction(double, int)
     */
    public Rational(double value, int maxDenominator) throws FractionConversionException {
        fraction = new BigFraction(value, maxDenominator);
    }
View Full Code Here


    /**
     * @see BigFraction#BigFraction(int)
     */
    public Rational(int num) {
        fraction = new BigFraction(num);
    }
View Full Code Here

    /**
     * @see BigFraction#BigFraction(int, int)
     */
    public Rational(int num, int den) {
        fraction = new BigFraction(num, den);
    }
View Full Code Here

    /**
     * @see BigFraction#BigFraction(long)
     */
    public Rational(long num) {
        fraction = new BigFraction(num);
    }
View Full Code Here

    /**
     * @see BigFraction#BigFraction(long, long)
     */
    public Rational(long num, long den) {
        fraction = new BigFraction(num, den);
    }
View Full Code Here

    /**
     * @see BigFraction#BigFraction(java.math.BigInteger)
     */
    public Rational(BigInteger num) {
        checkNotNull(num);
        fraction = new BigFraction(num);
    }
View Full Code Here

     * @see BigFraction#BigFraction(java.math.BigInteger, java.math.BigInteger)
     */
    public Rational(BigInteger num, BigInteger den) {
        checkNotNull(num);
        checkNotNull(den);
        fraction = new BigFraction(num, den);
    }
View Full Code Here

    /**
     * @see BigFraction#BigFraction(double)
     */
    public Rational(double value) throws MathIllegalArgumentException {
        fraction = new BigFraction(value);
    }
View Full Code Here

    /**
     * @see BigFraction#BigFraction(double, double, int)
     */
    public Rational(double value, double epsilon, int maxIterations) throws FractionConversionException {
        fraction = new BigFraction(value, epsilon, maxIterations);
    }
View Full Code Here

    /**
     * @see BigFraction#BigFraction(double, int)
     */
    public Rational(double value, int maxDenominator) throws FractionConversionException {
        fraction = new BigFraction(value, maxDenominator);
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.math3.fraction.BigFraction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.