# Uses of Class
org.apfloat.Apint

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

- ## Uses of Apint in org.apfloat

  Fields in org.apfloat declared as Apint
  Modifier and Type
  Field
  Description
  `static final Apint`
  Apcomplex.`ONE`
  Constant for one.
  `static final Apint`
  Apcomplex.`ZERO`
  Constant for zero.
  Methods in org.apfloat that return Apint
  Modifier and Type
  Method
  Description
  `static Apint`
  ApintMath.`abs(Apint x)`
  Absolute value.
  `Apint`
  Apint.`add(Apint x)`
  Adds two apints.
  `static Apint`
  ApintMath.`binomial(long n, long k)`
  Binomial coefficient.
  `static Apint`
  ApintMath.`binomial(long n, long k, int radix)`
  Binomial coefficient.
  `static Apint`
  ApintMath.`binomial(Apint n, Apint k)`
  Binomial coefficient.
  `static Apint[]`
  ApintMath.`cbrt(Apint x)`
  Cube root and remainder.
  `Apint`
  Apfloat.`ceil()`
  Ceiling function.
  `static Apint`
  ApfloatMath.`ceil(Apfloat x)`
  Ceiling function.
  `Apint`
  Apint.`ceil()`
  Ceiling function.
  `Apint`
  Aprational.`ceil()`
  Ceiling function.
  `static Apint[]`
  ApfloatMath.`continuedFraction(Apfloat x, int n)`
  Generates the first `n` terms in the continued fraction representation of `x`.
  `static Apint[]`
  AprationalMath.`continuedFraction(Aprational x, int n)`
  Generates the first `n` terms in the continued fraction representation of `x`.
  `static Apint`
  ApintMath.`copySign(Apint x, Apint y)`
  Copy sign from one argument to another.
  `Apint`
  Apint.`denominator()`
  Denominator of this aprational.
  `Apint`
  Aprational.`denominator()`
  Denominator of this aprational.
  `static Apint[]`
  ApintMath.`div(Apint x, Apint y)`
  Quotient and remainder.
  `Apint`
  Apint.`divide(Apint x)`
  Divides two apints.
  `static Apint`
  ApintMath.`doubleFactorial(long n)`
  Double factorial function.
  `static Apint`
  ApintMath.`doubleFactorial(long n, int radix)`
  Double factorial function.
  `static Apint`
  ApintMath.`factorial(long n)`
  Factorial function.
  `static Apint`
  ApintMath.`factorial(long n, int radix)`
  Factorial function.
  `Apint`
  Apfloat.`floor()`
  Floor function.
  `static Apint`
  ApfloatMath.`floor(Apfloat x)`
  Floor function.
  `Apint`
  Apint.`floor()`
  Floor function.
  `Apint`
  Aprational.`floor()`
  Floor function.
  `Apint`
  Apint.`frac()`
  Returns the fractional part.
  `static Apint`
  ApintMath.`gcd(Apint a, Apint b)`
  Greatest common divisor.
  `static Apint`
  ApintMath.`lcm(Apint a, Apint b)`
  Least common multiple.
  `static Apint`
  ApintMath.`max(Apint x, Apint y)`
  Returns the greater of the two values.
  `static Apint`
  ApintMath.`min(Apint x, Apint y)`
  Returns the smaller of the two values.
  `Apint`
  Apint.`mod(Apint x)`
  Calculates the remainder when divided by an apint.
  `static Apint`
  ApintMath.`modMultiply(Apint a, Apint b, Apint m)`
  Modular multiplication.
  `static Apint`
  ApintMath.`modPow(Apint a, Apint b, Apint m)`
  Modular power.
  `Apint`
  Apint.`multiply(Apint x)`
  Multiplies two apints.
  `Apint`
  Apint.`negate()`
  Negative value.
  `static Apint`
  ApintMath.`negate(Apint x)`
  Deprecated.
  Use `Apint.negate()`.
  `Apint`
  Apint.`numerator()`
  Numerator of this aprational.
  `Apint`
  Aprational.`numerator()`
  Numerator of this aprational.
  `static Apint`
  ApintMath.`pow(Apint x, long n)`
  Integer power.
  `static Apint`
  ApintMath.`product(Apint... x)`
  Product of numbers.
  `static Apint`
  ApintMath.`random(long digits)`
  Generates a random number.
  `static Apint`
  ApintMath.`random(long digits, int radix)`
  Generates a random number.
  `static Apint[]`
  ApintMath.`root(Apint x, long n)`
  Positive integer root and remainder.
  `static Apint`
  ApfloatMath.`roundToInteger(Apfloat x, RoundingMode roundingMode)`
  Rounds `x` to integer using the specified rounding mode.
  `static Apint`
  AprationalMath.`roundToInteger(Aprational x, RoundingMode roundingMode)`
  Rounds `x` to integer using the specified rounding mode.
  `static Apint`
  ApintMath.`scale(Apint x, long scale)`
  Multiply by a power of the radix.
  `static Apint[]`
  ApintMath.`sqrt(Apint x)`
  Square root and remainder.
  `Apint`
  Apint.`subtract(Apint x)`
  Subtracts two apints.
  `static Apint`
  ApintMath.`sum(Apint... x)`
  Sum of numbers.
  `Apint`
  Apint.`toRadix(int radix)`
  Convert this apint to the specified radix.
  `Apint`
  Apfloat.`truncate()`
  Truncates fractional part.
  `static Apint`
  ApfloatMath.`truncate(Apfloat x)`
  Truncates fractional part.
  `Apint`
  Apint.`truncate()`
  Truncates fractional part.
  `Apint`
  Aprational.`truncate()`
  Truncates fractional part.
  Methods in org.apfloat with parameters of type Apint
  Modifier and Type
  Method
  Description
  `static Apint`
  ApintMath.`abs(Apint x)`
  Absolute value.
  `Apint`
  Apint.`add(Apint x)`
  Adds two apints.
  `static Apint`
  ApintMath.`binomial(Apint n, Apint k)`
  Binomial coefficient.
  `static Apint[]`
  ApintMath.`cbrt(Apint x)`
  Cube root and remainder.
  `int`
  Apint.`compareTo(Apint x)`
  Compare this apint to the specified apint.
  `static Apint`
  ApintMath.`copySign(Apint x, Apint y)`
  Copy sign from one argument to another.
  `static Apint[]`
  ApintMath.`div(Apint x, Apint y)`
  Quotient and remainder.
  `Apint`
  Apint.`divide(Apint x)`
  Divides two apints.
  `static Apint`
  ApintMath.`gcd(Apint a, Apint b)`
  Greatest common divisor.
  `static Aprational`
  AprationalMath.`harmonicNumber(Apint n)`
  Harmonic number.
  `static Aprational`
  AprationalMath.`harmonicNumber(Apint n, Apint r)`
  Generalized harmonic number.
  `static Apint`
  ApintMath.`lcm(Apint a, Apint b)`
  Least common multiple.
  `static Apint`
  ApintMath.`max(Apint x, Apint y)`
  Returns the greater of the two values.
  `static Apint`
  ApintMath.`min(Apint x, Apint y)`
  Returns the smaller of the two values.
  `Apint`
  Apint.`mod(Apint x)`
  Calculates the remainder when divided by an apint.
  `static Apint`
  ApintMath.`modMultiply(Apint a, Apint b, Apint m)`
  Modular multiplication.
  `static Apint`
  ApintMath.`modPow(Apint a, Apint b, Apint m)`
  Modular power.
  `Apint`
  Apint.`multiply(Apint x)`
  Multiplies two apints.
  `static Apint`
  ApintMath.`negate(Apint x)`
  Deprecated.
  Use `Apint.negate()`.
  `static Aprational`
  AprationalMath.`pochhammer(Aprational x, Apint n)`
  Pochhammer symbol.
  `static Apint`
  ApintMath.`pow(Apint x, long n)`
  Integer power.
  `static Apint`
  ApintMath.`product(Apint... x)`
  Product of numbers.
  `static Apint[]`
  ApintMath.`root(Apint x, long n)`
  Positive integer root and remainder.
  `static Apint`
  ApintMath.`scale(Apint x, long scale)`
  Multiply by a power of the radix.
  `static Apint[]`
  ApintMath.`sqrt(Apint x)`
  Square root and remainder.
  `Apint`
  Apint.`subtract(Apint x)`
  Subtracts two apints.
  `static Apint`
  ApintMath.`sum(Apint... x)`
  Sum of numbers.
  `boolean`
  Apint.`test(Apint x)`
  Tests two apint numbers for equality.
  Constructors in org.apfloat with parameters of type Apint
  Modifier
  Constructor
  Description
  ``
  `Aprational(Apint value)`
  Construct an integer aprational whose denominator is one.
  ``
  `Aprational(Apint numerator, Apint denominator)`
  Construct an aprational with the specified numerator and denominator.

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

  Subclasses with type arguments of type Apint in org.apfloat.jscience
  Modifier and Type
  Class
  Description
  `class`
  `ModuloApintField`
  This class represents an arbitrary precision modulo integer.
  Methods in org.apfloat.jscience that return Apint
  Modifier and Type
  Method
  Description
  `static Apint`
  EllipticCurveGroup.`getA()`
  Returns the curve parameter a in Weierstrass form.
  `static Apint`
  EllipticCurveGroup.`getB()`
  Returns the curve parameter b in Weierstrass form.
  `static Apint`
  EllipticCurveGroup.`getJInvariant()`
  Returns the j-invariant of the curve.
  `static Apint`
  ModuloApintField.`getModulus()`
  Returns the modulus or `null` if modulo reduction is not done.
  `Apint`
  EllipticCurveGroup.`getX()`
  Returns the x-coordinate of this point.
  `Apint`
  EllipticCurveGroup.`getY()`
  Returns the y-coordinate of this point.
  `static Apint`
  ModuloApintField.`reduce(Apint value)`
  Reduce the value with the current modulus.
  Methods in org.apfloat.jscience with parameters of type Apint
  Modifier and Type
  Method
  Description
  `static EllipticCurveGroup`
  EllipticCurveGroup.`fromEdwardsPoint(Apint x, Apint y)`
  Construct a point from twisted Edwards curve coordinates.
  `static EllipticCurveGroup`
  EllipticCurveGroup.`fromMontgomeryPoint(Apint x, Apint y)`
  Construct a point from Montgomery curve coordinates.
  `ModuloApintField`
  ModuloApintField.`pow(Apint exp)`
  Modular power.
  `static Apint`
  ModuloApintField.`reduce(Apint value)`
  Reduce the value with the current modulus.
  `static void`
  EllipticCurveGroup.`setEdwardsParameters(Apint a, Apint d, Apint p)`
  Set the curve parameters in twisted Edwards form.
  `static void`
  ModuloApintField.`setModulus(Apint modulus)`
  Sets the modulus.
  `static void`
  EllipticCurveGroup.`setMontgomeryParameters(Apint b, Apint a, Apint p)`
  Set the curve parameters in Montgomery form.
  `static void`
  EllipticCurveGroup.`setWeierstrassParameters(Apint a, Apint b, Apint p)`
  Set the curve parameters in Weierstrass form.
  `EllipticCurveGroup`
  EllipticCurveGroup.`times(Apint that)`
  Returns this elliptic curve point multiplied by a scalar.
  Constructors in org.apfloat.jscience with parameters of type Apint
  Modifier
  Constructor
  Description
  ``
  `EllipticCurveGroup(Apint x, Apint y)`
  Constructs a new point on the elliptic curve.
  ``
  `ModuloApintField(Apint value)`
  Constructs a new integer field object with the specified value.