Uses of Class
org.hipparchus.fraction.Fraction
Packages that use Fraction
Package
Description
Fraction number type and fraction number formatting.
Linear algebra support.
-
Uses of Fraction in org.hipparchus.fraction
Fields in org.hipparchus.fraction declared as FractionModifier and TypeFieldDescriptionstatic final FractionFraction.FOUR_FIFTHSA fraction representing "4/5".static final FractionFraction.MINUS_ONEA fraction representing "-1 / 1".static final FractionFraction.ONEA fraction representing "1".static final FractionFraction.ONE_FIFTHA fraction representing "1/5".static final FractionFraction.ONE_HALFA fraction representing "1/2".static final FractionFraction.ONE_QUARTERA fraction representing "1/4".static final FractionFraction.ONE_THIRDA fraction representing "1/3".static final FractionFraction.THREE_FIFTHSA fraction representing "3/5".static final FractionFraction.THREE_QUARTERSA fraction representing "3/4".static final FractionFraction.TWOA fraction representing "2 / 1".static final FractionFraction.TWO_FIFTHSA fraction representing "2/5".static final FractionFraction.TWO_QUARTERSA fraction representing "2/4".static final FractionFraction.TWO_THIRDSA fraction representing "2/3".static final FractionFraction.ZEROA fraction representing "0".Methods in org.hipparchus.fraction that return FractionModifier 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 FractionFraction.getReducedFraction(int numerator, int denominator) Creates aFractioninstance 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 aFractionobject.FractionFormat.parse(String source, ParsePosition pos) Parses a string to produce aFractionobject.ProperFractionFormat.parse(String source, ParsePosition pos) Parses a string to produce aFractionobject.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.Methods in org.hipparchus.fraction that return types with arguments of type FractionModifier 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 astreamof convergents from a real number.FractionField.getRuntimeClass()Returns the runtime class of the FieldElement.Methods in org.hipparchus.fraction with parameters of type FractionModifier and TypeMethodDescriptionAdds the value of this fraction to another, returning the result in reduced form.intCompares this object to another based on size.Divide the value of this fraction by another.FractionFormat.format(Fraction fraction, StringBuffer toAppendTo, FieldPosition pos) Formats aFractionobject to produce a string.ProperFractionFormat.format(Fraction fraction, StringBuffer toAppendTo, FieldPosition pos) Formats aFractionobject to produce a string.static StringFractionFormat.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
Method parameters in org.hipparchus.linear with type arguments of type FractionModifier and TypeMethodDescriptionstatic Array2DRowRealMatrixMatrixUtils.fractionMatrixToRealMatrix(FieldMatrix<Fraction> m)