Package | Description |
---|---|
org.apfloat |
The apfloat Application Programming Interface (API).
|
Modifier and Type | Field and Description |
---|---|
static Apint |
Apcomplex.ONE
Constant for one.
|
static Apint |
Apcomplex.ZERO
Constant for zero.
|
Modifier and Type | Method and Description |
---|---|
static Apint |
ApintMath.abs(Apint x)
Absolute value.
|
Apint |
Apint.add(Apint x)
Adds two apints.
|
static Apint[] |
ApintMath.cbrt(Apint x)
Cube root and remainder.
|
Apint |
Apint.ceil()
Ceiling function.
|
Apint |
Aprational.ceil()
Ceiling function.
|
Apint |
Apfloat.ceil()
Ceiling function.
|
static Apint |
ApfloatMath.ceil(Apfloat x)
Ceiling function.
|
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.factorial(long n)
Factorial function.
|
static Apint |
ApintMath.factorial(long n,
int radix)
Factorial function.
|
Apint |
Apint.floor()
Floor function.
|
Apint |
Aprational.floor()
Floor function.
|
Apint |
Apfloat.floor()
Floor function.
|
static Apint |
ApfloatMath.floor(Apfloat x)
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.
|
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
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.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.
|
Apint |
Apint.toRadix(int radix)
Convert this apint to the specified radix.
|
Apint |
Apint.truncate()
Truncates fractional part.
|
Apint |
Aprational.truncate()
Truncates fractional part.
|
Apint |
Apfloat.truncate()
Truncates fractional part.
|
static Apint |
ApfloatMath.truncate(Apfloat x)
Truncates fractional part.
|
Modifier and Type | Method and Description |
---|---|
static Apint |
ApintMath.abs(Apint x)
Absolute value.
|
Apint |
Apint.add(Apint x)
Adds two apints.
|
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 Apint |
ApintMath.lcm(Apint a,
Apint b)
Least common multiple.
|
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
negate() . |
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.
|
Constructor and 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.
|
Copyright © 2018. All rights reserved.