Uses of Class
org.hipparchus.fraction.BigFraction
Packages that use BigFraction
Package
Description
Fraction number type and fraction number formatting.
Linear algebra support.
-
Uses of BigFraction in org.hipparchus.fraction
Fields in org.hipparchus.fraction declared as BigFractionModifier and TypeFieldDescriptionstatic final BigFractionBigFraction.FOUR_FIFTHSA fraction representing "4/5".static final BigFractionBigFraction.MINUS_ONEA fraction representing "-1 / 1".static final BigFractionBigFraction.ONEA fraction representing "1".static final BigFractionBigFraction.ONE_FIFTHA fraction representing "1/5".static final BigFractionBigFraction.ONE_HALFA fraction representing "1/2".static final BigFractionBigFraction.ONE_QUARTERA fraction representing "1/4".static final BigFractionBigFraction.ONE_THIRDA fraction representing "1/3".static final BigFractionBigFraction.THREE_FIFTHSA fraction representing "3/5".static final BigFractionBigFraction.THREE_QUARTERSA fraction representing "3/4".static final BigFractionBigFraction.TWOA fraction representing "2 / 1".static final BigFractionBigFraction.TWO_FIFTHSA fraction representing "2/5".static final BigFractionBigFraction.TWO_QUARTERSA fraction representing "2/4".static final BigFractionBigFraction.TWO_THIRDSA fraction representing "2/3".static final BigFractionBigFraction.ZEROA fraction representing "0".Methods in org.hipparchus.fraction that return BigFractionModifier and TypeMethodDescriptionBigFraction.abs()Returns the absolute value of thisBigFraction.BigFraction.add(int i) Adds the value of this fraction to the passedinteger, returning the result in reduced form.BigFraction.add(long l) Adds the value of this fraction to the passedlong, returning the result in reduced form.BigFraction.add(BigInteger bg) Adds the value of this fraction to the passedBigInteger, returning the result in reduced form.BigFraction.add(BigFraction fraction) Adds the value of this fraction to another, returning the result in reduced form.BigFraction.divide(int i) Divide the value of this fraction by the passedint, iethis * 1 / i, returning the result in reduced form.BigFraction.divide(long l) Divide the value of this fraction by the passedlong, iethis * 1 / l, returning the result in reduced form.BigFraction.divide(BigInteger bg) Divide the value of this fraction by the passedBigInteger, iethis * 1 / bg, returning the result in reduced form.BigFraction.divide(BigFraction fraction) Divide the value of this fraction by another, returning the result in reduced form.BigFraction.gcd(BigFraction s) Rational number greatest common divisor.BigFractionField.getOne()Get the multiplicative identity of the field.static BigFractionBigFraction.getReducedFraction(int numerator, int denominator) Creates aBigFractioninstance with the 2 parts of a fraction Y/Z.BigFractionField.getZero()Get the additive identity of the field.BigFraction.lcm(BigFraction s) Rational number least common multiple.BigFraction.multiply(int i) Multiply the value of this fraction by the passedint, returning the result in reduced form.BigFraction.multiply(long l) Multiply the value of this fraction by the passedlong, returning the result in reduced form.BigFraction.multiply(BigInteger bg) Multiplies the value of this fraction by the passedBigInteger, returning the result in reduced form.BigFraction.multiply(BigFraction fraction) Multiplies the value of this fraction by another, returning the result in reduced form.BigFraction.negate()Return the additive inverse of this fraction, returning the result in reduced form.Parses a string to produce aBigFractionobject.BigFractionFormat.parse(String source, ParsePosition pos) Parses a string to produce aBigFractionobject.ProperBigFractionFormat.parse(String source, ParsePosition pos) Parses a string to produce aBigFractionobject.BigFraction.pow(int exponent) Returns aBigFractionwhose value is(this<sup>exponent</sup>), returning the result in reduced form.BigFraction.pow(long exponent) Returns aBigFractionwhose value is thisexponent, returning the result in reduced form.BigFraction.pow(BigInteger exponent) Returns aBigFractionwhose value is thisexponent, returning the result in reduced form.BigFraction.reciprocal()Return the multiplicative inverse of this fraction.BigFraction.reduce()Reduce thisBigFractionto its lowest terms.BigFraction.subtract(int i) Subtracts the value of anintegerfrom the value of thisBigFraction, returning the result in reduced form.BigFraction.subtract(long l) Subtracts the value of alongfrom the value of thisBigFraction, returning the result in reduced form.BigFraction.subtract(BigInteger bg) Subtracts the value of anBigIntegerfrom the value of thisBigFraction, returning the result in reduced form.BigFraction.subtract(BigFraction fraction) Subtracts the value of another fraction from the value of this one, returning the result in reduced form.Methods in org.hipparchus.fraction that return types with arguments of type BigFractionModifier and TypeMethodDescriptionstatic Pair<BigFraction, Boolean> BigFraction.convergent(double value, int maxConvergents, BigFraction.ConvergenceTest convergenceTest) Returns the last element of the series of convergent-steps to approximate the given value.static Stream<BigFraction> BigFraction.convergents(double value, int maxConvergents) Generate astreamof convergents from a real number.BigFractionField.getRuntimeClass()Returns the runtime class of the FieldElement.Methods in org.hipparchus.fraction with parameters of type BigFractionModifier and TypeMethodDescriptionBigFraction.add(BigFraction fraction) Adds the value of this fraction to another, returning the result in reduced form.intBigFraction.compareTo(BigFraction object) Compares this object to another based on size.BigFraction.divide(BigFraction fraction) Divide the value of this fraction by another, returning the result in reduced form.BigFractionFormat.format(BigFraction BigFraction, StringBuffer toAppendTo, FieldPosition pos) Formats aBigFractionobject to produce a string.ProperBigFractionFormat.format(BigFraction fraction, StringBuffer toAppendTo, FieldPosition pos) Formats aBigFractionobject to produce a string.static StringBigFractionFormat.formatBigFraction(BigFraction f) This static method calls formatBigFraction() on a default instance of BigFractionFormat.BigFraction.gcd(BigFraction s) Rational number greatest common divisor.BigFraction.lcm(BigFraction s) Rational number least common multiple.BigFraction.multiply(BigFraction fraction) Multiplies the value of this fraction by another, returning the result in reduced form.BigFraction.subtract(BigFraction fraction) Subtracts the value of another fraction from the value of this one, returning the result in reduced form. -
Uses of BigFraction in org.hipparchus.linear
Method parameters in org.hipparchus.linear with type arguments of type BigFractionModifier and TypeMethodDescriptionstatic Array2DRowRealMatrixMatrixUtils.bigFractionMatrixToRealMatrix(FieldMatrix<BigFraction> m)