Uses of Class
ch.obermuhlner.math.big.BigRational
Packages that use BigRational
-
Uses of BigRational in ch.obermuhlner.math.big
Classes in ch.obermuhlner.math.big that implement interfaces with type arguments of type BigRationalModifier and TypeClassDescriptionclassA rational number represented as a quotient of two values.Fields in ch.obermuhlner.math.big declared as BigRationalModifier and TypeFieldDescriptionstatic final BigRationalBigRational.ONEThe value 1 asBigRational.static final BigRationalBigRational.TENThe value 10 asBigRational.static final BigRationalBigRational.TWOThe value 2 asBigRational.static final BigRationalBigRational.ZEROThe value 0 asBigRational.Fields in ch.obermuhlner.math.big with type parameters of type BigRationalMethods in ch.obermuhlner.math.big that return BigRationalModifier and TypeMethodDescriptionBigRational.abs()Returns the absolute value of this rational number.BigRational.add(int value) Calculates the addition (+) of this rational number and the specified argument.BigRational.add(BigRational value) Calculates the addition (+) of this rational number and the specified argument.private BigRationalBigRational.add(BigDecimal value) BigRational.add(BigInteger value) Calculates the addition (+) of this rational number and the specified argument.static BigRationalBigRational.bernoulli(int n) Calculates the Bernoulli number for the specified index.private static BigRationalBigRational.calculateBernoulli(int n) BigRational.decrement()Calculates the decrement of this rational number (- 1).BigRational.divide(int value) Calculates the division (/) of this rational number and the specified argument.BigRational.divide(BigRational value) Calculates the division (/) of this rational number and the specified argument.private BigRationalBigRational.divide(BigDecimal value) BigRational.divide(BigInteger value) Calculates the division (/) of this rational number and the specified argument.BigRational.fractionPart()Returns the fraction part of this rational number.BigRational.increment()Calculates the increment of this rational number (+ 1).BigRational.integerPart()Returns the integer part of this rational number.private BigRationalBigRational.max(BigRational value) Finds the maximum (larger) of two rational numbers.static BigRationalBigRational.max(BigRational... values) Returns the largest of the specified rational numbers.private BigRationalBigRational.min(BigRational value) Finds the minimum (smaller) of two rational numbers.static BigRationalBigRational.min(BigRational... values) Returns the smallest of the specified rational numbers.BigRational.multiply(int value) Calculates the multiplication (*) of this rational number and the specified argument.BigRational.multiply(BigRational value) Calculates the multiplication (*) of this rational number and the specified argument.private BigRationalBigRational.multiply(BigDecimal value) BigRational.multiply(BigInteger value) Calculates the multiplication (*) of this rational number and the specified argument.BigRational.negate()Negates this rational number (inverting the sign).private static BigRationalBigRational.of(BigDecimal numerator, BigDecimal denominator) BigRational.pow(int exponent) Calculates this rational number to the power (xy) of the specified argument.BigRational.reciprocal()Calculates the reciprocal of this rational number (1/x).BigRational.reduce()Reduces this rational number to the smallest numerator/denominator with the same value.BigRational.subtract(int value) Calculates the subtraction (-) of this rational number and the specified argument.BigRational.subtract(BigRational value) Calculates the subtraction (-) of this rational number and the specified argument.private BigRationalBigRational.subtract(BigDecimal value) BigRational.subtract(BigInteger value) Calculates the subtraction (-) of this rational number and the specified argument.static BigRationalBigRational.valueOf(boolean positive, String integerPart, String fractionPart, String fractionRepeatPart, String exponentPart) static BigRationalBigRational.valueOf(double value) Creates a rational number of the specified double value.static BigRationalBigRational.valueOf(int value) Creates a rational number of the specified int value.static BigRationalBigRational.valueOf(int numerator, int denominator) Creates a rational number of the specified numerator/denominator int values.static BigRationalBigRational.valueOf(int integer, int fractionNumerator, int fractionDenominator) Creates a rational number of the specified integer and fraction parts.static BigRationalCreates a rational number of the specified string representation.static BigRationalBigRational.valueOf(BigDecimal value) Creates a rational number of the specifiedBigDecimalvalue.static BigRationalBigRational.valueOf(BigDecimal numerator, BigDecimal denominator) Creates a rational number of the specified numerator/denominator BigDecimal values.static BigRationalBigRational.valueOf(BigInteger value) Creates a rational number of the specifiedBigIntegervalue.static BigRationalBigRational.valueOf(BigInteger numerator, BigInteger denominator) Creates a rational number of the specified numerator/denominator BigInteger values.private static BigRationalBigRational.valueOfSimple(String string) BigRational.withPrecision(int precision) Returns a rational number with approximativelythisvalue and the specified precision.BigRational.withScale(int scale) Returns a rational number with approximativelythisvalue and the specified scale.Methods in ch.obermuhlner.math.big with parameters of type BigRationalModifier and TypeMethodDescriptionBigRational.add(BigRational value) Calculates the addition (+) of this rational number and the specified argument.intBigRational.compareTo(BigRational other) BigRational.divide(BigRational value) Calculates the division (/) of this rational number and the specified argument.private BigRationalBigRational.max(BigRational value) Finds the maximum (larger) of two rational numbers.static BigRationalBigRational.max(BigRational... values) Returns the largest of the specified rational numbers.private BigRationalBigRational.min(BigRational value) Finds the minimum (smaller) of two rational numbers.static BigRationalBigRational.min(BigRational... values) Returns the smallest of the specified rational numbers.BigRational.multiply(BigRational value) Calculates the multiplication (*) of this rational number and the specified argument.BigRational.subtract(BigRational value) Calculates the subtraction (-) of this rational number and the specified argument. -
Uses of BigRational in ch.obermuhlner.math.big.internal
Fields in ch.obermuhlner.math.big.internal declared as BigRationalModifier and TypeFieldDescriptionprivate BigRationalAsinCalculator.factorial2nprivate BigRationalCosCalculator.factorial2nprivate BigRationalCoshCalculator.factorial2nprivate BigRationalSinCalculator.factorial2nPlus1private BigRationalSinhCalculator.factorial2nPlus1private BigRationalAsinCalculator.factorialNprivate BigRationalAsinCalculator.fourPowerNprivate BigRationalExpCalculator.oneOverFactorialOfNFields in ch.obermuhlner.math.big.internal with type parameters of type BigRationalMethods in ch.obermuhlner.math.big.internal that return BigRationalModifier and TypeMethodDescriptionprotected BigRationalAsinCalculator.getCurrentFactor()protected BigRationalAtanhCalculator.getCurrentFactor()protected BigRationalCosCalculator.getCurrentFactor()protected BigRationalCoshCalculator.getCurrentFactor()protected BigRationalExpCalculator.getCurrentFactor()protected abstract BigRationalSeriesCalculator.getCurrentFactor()Returns the factor of the highest term already calculated.protected BigRationalSinCalculator.getCurrentFactor()protected BigRationalSinhCalculator.getCurrentFactor()protected BigRationalSeriesCalculator.getFactor(int index) Returns the factor of the term with specified index.Methods in ch.obermuhlner.math.big.internal with parameters of type BigRational