# Uses of Class
org.apfloat.Aprational

Packages that use Aprational
Package
Description
org.apfloat
The apfloat Application Programming Interface (API).
org.apfloat.jscience
JScience wrapper for apfloat.

- ## Uses of Aprational in org.apfloat

  Subclasses of Aprational in org.apfloat
  Modifier and Type
  Class
  Description
  `class`
  `Apint`
  Arbitrary precision integer class.
  Methods in org.apfloat that return Aprational
  Modifier and Type
  Method
  Description
  `static Aprational`
  AprationalMath.`abs(Aprational x)`
  Absolute value.
  `Aprational`
  Aprational.`add(Aprational x)`
  Adds two aprational numbers.
  `static Aprational`
  AprationalMath.`bernoulli(long n)`
  Returns the specified Bernoulli number.
  `static Aprational`
  AprationalMath.`bernoulli(long n, int radix)`
  Returns the specified Bernoulli number in the given radix.
  `static Aprational`
  AprationalMath.`binomial(Aprational n, Aprational k)`
  Binomial coefficient.
  `static Aprational[]`
  ApfloatMath.`convergents(Apfloat x, int n)`
  Generates the first `n` convergents corresponding to the continued fraction of `x`.
  `static Aprational[]`
  AprationalMath.`convergents(Aprational x, int n)`
  Generates the first `n` convergents corresponding to the continued fraction of `x`.
  `static Aprational`
  AprationalMath.`copySign(Aprational x, Aprational y)`
  Copy sign from one argument to another.
  `Aprational`
  Aprational.`divide(Aprational x)`
  Divides two aprational numbers.
  `static Aprational`
  AprationalMath.`doubleFactorial(long n)`
  Double factorial function.
  `static Aprational`
  AprationalMath.`doubleFactorial(long n, int radix)`
  Double factorial function.
  `Aprational`
  Aprational.`frac()`
  Returns the fractional part.
  `static Aprational`
  AprationalMath.`harmonicNumber(Apint n)`
  Harmonic number.
  `static Aprational`
  AprationalMath.`harmonicNumber(Apint n, Apint r)`
  Generalized harmonic number.
  `static Aprational`
  AprationalMath.`max(Aprational x, Aprational y)`
  Returns the greater of the two values.
  `static Aprational`
  AprationalMath.`min(Aprational x, Aprational y)`
  Returns the smaller of the two values.
  `Aprational`
  Aprational.`mod(Aprational x)`
  Calculates the remainder when divided by an aprational.
  `Aprational`
  Aprational.`multiply(Aprational x)`
  Multiplies two aprational numbers.
  `Aprational`
  Aprational.`negate()`
  Negative value.
  `static Aprational`
  AprationalMath.`negate(Aprational x)`
  Deprecated.
  Use `Aprational.negate()`.
  `static Aprational`
  AprationalMath.`pochhammer(Aprational x, Apint n)`
  Pochhammer symbol.
  `static Aprational`
  AprationalMath.`pow(Aprational x, long n)`
  Integer power.
  `static Aprational`
  AprationalMath.`product(Aprational... x)`
  Product of numbers.
  `static Aprational`
  AprationalMath.`roundToMultiple(Aprational x, Aprational y, RoundingMode roundingMode)`
  Rounds `x` to the nearest multiple of `y` using the specified rounding mode.
  `static Aprational`
  AprationalMath.`scale(Aprational x, long scale)`
  Multiply by a power of the radix.
  `Aprational`
  Aprational.`subtract(Aprational x)`
  Subtracts two aprational numbers.
  `static Aprational`
  AprationalMath.`sum(Aprational... x)`
  Sum of numbers.
  `Aprational`
  Aprational.`toRadix(int radix)`
  Convert this aprational to the specified radix.
  Methods in org.apfloat with parameters of type Aprational
  Modifier and Type
  Method
  Description
  `static Aprational`
  AprationalMath.`abs(Aprational x)`
  Absolute value.
  `Aprational`
  Aprational.`add(Aprational x)`
  Adds two aprational numbers.
  `static Aprational`
  AprationalMath.`binomial(Aprational n, Aprational k)`
  Binomial coefficient.
  `int`
  Apint.`compareTo(Aprational x)`
  Compare this apint to the specified aprational.
  `int`
  Aprational.`compareTo(Aprational x)`
  Compare this aprational to the specified aprational.
  `static Apint[]`
  AprationalMath.`continuedFraction(Aprational x, int n)`
  Generates the first `n` terms in the continued fraction representation of `x`.
  `static Aprational[]`
  AprationalMath.`convergents(Aprational x, int n)`
  Generates the first `n` convergents corresponding to the continued fraction of `x`.
  `static Aprational`
  AprationalMath.`copySign(Aprational x, Aprational y)`
  Copy sign from one argument to another.
  `Aprational`
  Aprational.`divide(Aprational x)`
  Divides two aprational numbers.
  `static Aprational`
  AprationalMath.`max(Aprational x, Aprational y)`
  Returns the greater of the two values.
  `static Aprational`
  AprationalMath.`min(Aprational x, Aprational y)`
  Returns the smaller of the two values.
  `Aprational`
  Aprational.`mod(Aprational x)`
  Calculates the remainder when divided by an aprational.
  `Aprational`
  Aprational.`multiply(Aprational x)`
  Multiplies two aprational numbers.
  `static Aprational`
  AprationalMath.`negate(Aprational x)`
  Deprecated.
  Use `Aprational.negate()`.
  `static Aprational`
  AprationalMath.`pochhammer(Aprational x, Apint n)`
  Pochhammer symbol.
  `static Aprational`
  AprationalMath.`pow(Aprational x, long n)`
  Integer power.
  `static Aprational`
  AprationalMath.`product(Aprational... x)`
  Product of numbers.
  `static Apfloat`
  AprationalMath.`round(Aprational x, long precision, RoundingMode roundingMode)`
  Deprecated.
  Use `AprationalMath.roundToPrecision(Aprational,long,RoundingMode)`.
  `static Apint`
  AprationalMath.`roundToInteger(Aprational x, RoundingMode roundingMode)`
  Rounds `x` to integer using the specified rounding mode.
  `static Aprational`
  AprationalMath.`roundToMultiple(Aprational x, Aprational y, RoundingMode roundingMode)`
  Rounds `x` to the nearest multiple of `y` using the specified rounding mode.
  `static Apfloat`
  AprationalMath.`roundToPlaces(Aprational x, long places, RoundingMode roundingMode)`
  Rounds `x` to the specified number of places using the specified rounding mode.
  `static Apfloat`
  AprationalMath.`roundToPrecision(Aprational x, long precision, RoundingMode roundingMode)`
  Rounds the given number to the specified precision with the specified rounding mode.
  `static Aprational`
  AprationalMath.`scale(Aprational x, long scale)`
  Multiply by a power of the radix.
  `Aprational`
  Aprational.`subtract(Aprational x)`
  Subtracts two aprational numbers.
  `static Aprational`
  AprationalMath.`sum(Aprational... x)`
  Sum of numbers.
  `boolean`
  Apint.`test(Aprational x)`
  `boolean`
  Aprational.`test(Aprational x)`
  Tests two aprational numbers for equality.

- ## Uses of Aprational in org.apfloat.jscience

  Subclasses with type arguments of type Aprational in org.apfloat.jscience
  Modifier and Type
  Class
  Description
  `class`
  `AprationalField`
  This class represents an arbitrary precision rational number.
  Constructors in org.apfloat.jscience with parameters of type Aprational
  Modifier
  Constructor
  Description
  ``
  `AprationalField(Aprational value)`
  Constructs a new rational field object with the specified value.