Uses of Class
org.hipparchus.fraction.Fraction
Package
Description
Fraction number type and fraction number formatting.
Linear algebra support.
-
Uses of Fraction in org.hipparchus.fraction
Modifier and TypeFieldDescriptionstatic final Fraction
Fraction.FOUR_FIFTHS
A fraction representing "4/5".static final Fraction
Fraction.MINUS_ONE
A fraction representing "-1 / 1".static final Fraction
Fraction.ONE
A fraction representing "1".static final Fraction
Fraction.ONE_FIFTH
A fraction representing "1/5".static final Fraction
Fraction.ONE_HALF
A fraction representing "1/2".static final Fraction
Fraction.ONE_QUARTER
A fraction representing "1/4".static final Fraction
Fraction.ONE_THIRD
A fraction representing "1/3".static final Fraction
Fraction.THREE_FIFTHS
A fraction representing "3/5".static final Fraction
Fraction.THREE_QUARTERS
A fraction representing "3/4".static final Fraction
Fraction.TWO
A fraction representing "2 / 1".static final Fraction
Fraction.TWO_FIFTHS
A fraction representing "2/5".static final Fraction
Fraction.TWO_QUARTERS
A fraction representing "2/4".static final Fraction
Fraction.TWO_THIRDS
A fraction representing "2/3".static final Fraction
Fraction.ZERO
A fraction representing "0".Modifier and TypeMethodDescriptionFraction.abs()
Returns the absolute value of this fraction.Fraction.add
(int i) Add an integer to the fraction.Adds the value of this fraction to another, returning the result in reduced form.Fraction.divide
(int i) Divide the fraction by an integer.Divide the value of this fraction by another.Rational number greatest common divisor.FractionField.getOne()
Get the multiplicative identity of the field.static Fraction
Fraction.getReducedFraction
(int numerator, int denominator) Creates aFraction
instance with the 2 parts of a fraction Y/Z.FractionField.getZero()
Get the additive identity of the field.Rational number least common multiple.Fraction.multiply
(int i) Multiply the fraction by an integer.Multiplies the value of this fraction by another, returning the result in reduced form.Fraction.negate()
Return the additive inverse of this fraction.Parses a string to produce aFraction
object.FractionFormat.parse
(String source, ParsePosition pos) Parses a string to produce aFraction
object.ProperFractionFormat.parse
(String source, ParsePosition pos) Parses a string to produce aFraction
object.Fraction.reciprocal()
Return the multiplicative inverse of this fraction.Fraction.subtract
(int i) Subtract an integer from the fraction.Subtracts the value of another fraction from the value of this one, returning the result in reduced form.Modifier and TypeMethodDescriptionFraction.convergent
(double value, int maxConvergents, Fraction.ConvergenceTest convergenceTest) Returns the last element of the series of convergent-steps to approximate the given value.Fraction.convergents
(double value, int maxConvergents) Generate astream
of convergents from a real number.FractionField.getRuntimeClass()
Returns the runtime class of the FieldElement.Modifier and TypeMethodDescriptionAdds the value of this fraction to another, returning the result in reduced form.int
Compares this object to another based on size.Divide the value of this fraction by another.FractionFormat.format
(Fraction fraction, StringBuffer toAppendTo, FieldPosition pos) Formats aFraction
object to produce a string.ProperFractionFormat.format
(Fraction fraction, StringBuffer toAppendTo, FieldPosition pos) Formats aFraction
object to produce a string.static String
FractionFormat.formatFraction
(Fraction f) This static method calls formatFraction() on a default instance of FractionFormat.Rational number greatest common divisor.Rational number least common multiple.Multiplies the value of this fraction by another, returning the result in reduced form.Subtracts the value of another fraction from the value of this one, returning the result in reduced form. -
Uses of Fraction in org.hipparchus.linear
Modifier and TypeMethodDescriptionstatic Array2DRowRealMatrix
MatrixUtils.fractionMatrixToRealMatrix
(FieldMatrix<Fraction> m)