Uses of Class
org.apfloat.Apfloat
Packages that use Apfloat
Package
Description
The apfloat Application Programming Interface (API).
JScience wrapper for apfloat.
Sample applications demonstrating apfloat use.
-
Uses of Apfloat in org.apfloat
Subclasses of Apfloat in org.apfloatModifier and TypeClassDescriptionclass
Arbitrary precision integer class.class
Arbitrary precision rational number class.Methods in org.apfloat that return ApfloatModifier and TypeMethodDescriptionstatic Apfloat
Absolute value.static Apfloat
Absolute value.Absolute value.Absolute value.static Apfloat
Inverse cosine.Arc cosine.static Apfloat
Inverse hyperbolic cosine.Hyperbolic arc cosine.Adds two apfloats.Addition.static Apfloat
Arithmetic-geometric mean.Arithmetic-geometric mean.static Apfloat
Angle of the complex vector in the complex plane.Complex angle.static Apfloat
Inverse sine.Arc sine.static Apfloat
Inverse hyperbolic sine.Hyperbolic arc sine.static Apfloat
Inverse tangent.Arc tangent.static Apfloat
Converts cartesian coordinates to polar coordinates.Angle of point.static Apfloat
Inverse hyperbolic tangent.Hyperbolic arc tangent.FixedPrecisionApcomplexHelper.bernoulli
(long n) Bernoulli number.FixedPrecisionApcomplexHelper.bernoulli
(long n, int radix) Bernoulli number.static Apfloat
Binomial coefficient.FixedPrecisionApcomplexHelper.binomial
(long n, long k) Binomial coefficient.FixedPrecisionApcomplexHelper.binomial
(long n, long k, int radix) Binomial coefficient.Binomial coefficient.static Apfloat
ApfloatMath.catalan
(long precision) Calculates Catalan's constant, G.static Apfloat
ApfloatMath.catalan
(long precision, int radix) Calculates Catalan's constant, G.FixedPrecisionApcomplexHelper.catalan()
Catalan's constant G.FixedPrecisionApcomplexHelper.catalan
(int radix) Catalan's constant G.static Apfloat
Cube root.Cube root.Ceiling function.Apfloat[]
FixedPrecisionApfloatHelper.continuedFraction
(Apfloat x, int n) Continued fraction.Apfloat[]
FixedPrecisionApfloatHelper.convergents
(Apfloat x, int n) Convergents.static Apfloat
Copy sign from one argument to another.Copies the sign from one number to another.static Apfloat
Cosine.Cosine.static Apfloat
Hyperbolic cosine.Hyperbolic cosine.static Apfloat
Digamma function.Digamma function.Divides two apfloats.Division.static Apfloat
ApfloatMath.e
(long precision) Calculates e.static Apfloat
ApfloatMath.e
(long precision, int radix) Calculates e.FixedPrecisionApcomplexHelper.e()
e.FixedPrecisionApcomplexHelper.e
(int radix) e.static Apfloat
ApfloatMath.euler
(long precision) Calculates γ, the Euler-Mascheroni constant.static Apfloat
ApfloatMath.euler
(long precision, int radix) Calculates γ, the Euler-Mascheroni constant.FixedPrecisionApcomplexHelper.euler()
γ, the Euler-Mascheroni constant.FixedPrecisionApcomplexHelper.euler
(int radix) γ, the Euler-Mascheroni constant.static Apfloat
Exponent function.Exponential function.FixedPrecisionApfloatHelper.factorial
(long n) Factorial.FixedPrecisionApfloatHelper.factorial
(long n, int radix) Factorial.Floor function.static Apfloat
Returns x modulo y.Modulus.Apfloat.frac()
Returns the fractional part.static Apfloat
Extracts fractional part.Extract fractional part.static Apfloat
Gamma function.static Apfloat
Incomplete gamma function.static Apfloat
Generalized incomplete gamma function.Gamma function.Incomplete gamma function.Generalized incomplete gamma function.static Apfloat
ApfloatMath.glaisher
(long precision) Calculates the Glaisher‐Kinkelin constant, A.static Apfloat
ApfloatMath.glaisher
(long precision, int radix) Calculates the Glaisher‐Kinkelin constant, A.FixedPrecisionApcomplexHelper.glaisher()
The Glaisher-Kinkelin constant A.FixedPrecisionApcomplexHelper.glaisher
(int radix) The Glaisher-Kinkelin constant A.static Apfloat
ApfloatMath.hypergeometric0F1
(Apfloat a, Apfloat x) Confluent hypergeometric function 0F1.FixedPrecisionApfloatHelper.hypergeometric0F1
(Apfloat a, Apfloat x) Confluent hypergeometric function 0F1.static Apfloat
ApfloatMath.hypergeometric1F1
(Apfloat a, Apfloat b, Apfloat x) Kummer confluent hypergeometric function 1F1.FixedPrecisionApfloatHelper.hypergeometric1F1
(Apfloat a, Apfloat b, Apfloat x) Kummer confluent hypergeometric function 1F1.static Apfloat
ApfloatMath.hypergeometric2F1
(Apfloat a, Apfloat b, Apfloat c, Apfloat x) Hypergeometric function 2F1.FixedPrecisionApfloatHelper.hypergeometric2F1
(Apfloat a, Apfloat b, Apfloat c, Apfloat x) Hypergeometric function 2F1.Apcomplex.imag()
Returns the imaginary part of this apcomplex.Apfloat.imag()
Imaginary part of this apfloat.Imaginary part.static Apfloat
ApfloatMath.inverseRoot
(Apfloat x, long n) Inverse positive integer root.static Apfloat
ApfloatMath.inverseRoot
(Apfloat x, long n, long targetPrecision) Inverse positive integer root.static Apfloat
ApfloatMath.inverseRoot
(Apfloat x, long n, long targetPrecision, Apfloat initialGuess) Inverse positive integer root.static Apfloat
ApfloatMath.inverseRoot
(Apfloat x, long n, long targetPrecision, Apfloat initialGuess, long initialPrecision) Inverse positive integer root.FixedPrecisionApfloatHelper.inverseRoot
(Apfloat x, long n) Inverse root.static Apfloat
ApfloatMath.khinchin
(long precision) Calculates Khinchin's constant, K.Uses the default radix.static Apfloat
ApfloatMath.khinchin
(long precision, int radix) Calculates Khinchin's constant, K.FixedPrecisionApcomplexHelper.khinchin()
Khinchin's constant K.FixedPrecisionApcomplexHelper.khinchin
(int radix) Khinchin's constant K.static Apfloat
Natural logarithm.static Apfloat
Logarithm in arbitrary base.Natural logarithm.Logarithm in specified base.static Apfloat
Logarithm of the gamma function.Logarithm of the gamma function.static Apfloat
ApfloatMath.logRadix
(long precision, int radix) Gets or calculates logarithm of a radix to required precision.FixedPrecisionApfloatHelper.logRadix
(int radix) Logarithm.static Apfloat
Returns the greater of the two values.Maximum value.static Apfloat
Returns the smaller of the two values.Minimum value.Calculates the remainder when divided by an apfloat.Modulus.static Apfloat[]
Split to integer and fractional parts.Apfloat[]
Split to integer and fractional parts.Multiplies two apfloats.Multiplication.static Apfloat
ApfloatMath.multiplyAdd
(Apfloat a, Apfloat b, Apfloat c, Apfloat d) Fused multiply-add.FixedPrecisionApfloatHelper.multiplyAdd
(Apfloat a, Apfloat b, Apfloat c, Apfloat d) Fused multiply-add.static Apfloat
ApfloatMath.multiplySubtract
(Apfloat a, Apfloat b, Apfloat c, Apfloat d) Fused multiply-subtract.FixedPrecisionApfloatHelper.multiplySubtract
(Apfloat a, Apfloat b, Apfloat c, Apfloat d) Fused multiply-subtract.Apfloat.negate()
Negative value.static Apfloat
Deprecated.Negation.static Apfloat
Returns the number adjacent to the first argument in the direction of the second argument, considering the scale and precision of the first argument.The number adjacent to the first argument in the direction of the second argument.static Apfloat
Returns the number adjacent to the argument in the direction of negative infinity, considering the scale and precision of the argument.The adjacent value closer to negative infinity.static Apfloat
Returns the number adjacent to the argument in the direction of positive infinity, considering the scale and precision of the argument.The adjacent value closer to positive infinity.static Apfloat
Norm.Norm.static Apfloat
ApfloatMath.pi
(long precision) Calculates π.static Apfloat
ApfloatMath.pi
(long precision, int radix) Calculates π.FixedPrecisionApfloatHelper.pi()
π.FixedPrecisionApfloatHelper.pi
(int radix) π.static Apfloat
Integer power.static Apfloat
Arbitrary power.Integer power.Power.Apfloat.precision
(long precision) Returns an apfloat with the same value as this apfloat accurate to the specified precision.static Apfloat
Product of numbers.Product.static Apfloat
ApfloatMath.random
(long digits) Generates a random number.static Apfloat
ApfloatMath.random
(long digits, int radix) Generates a random number.FixedPrecisionApfloatHelper.random()
Return a uniformly distributed random number0 ≤ x < 1
.FixedPrecisionApfloatHelper.random
(int radix) Return a uniformly distributed random number0 ≤ x < 1
.static Apfloat
ApfloatMath.randomGaussian
(long digits) Generates a random, Gaussian ("normally") distributed number value with mean 0 and standard deviation 1.static Apfloat
ApfloatMath.randomGaussian
(long digits, int radix) Generates a random, Gaussian ("normally") distributed number value with mean 0 and standard deviation 1.FixedPrecisionApfloatHelper.randomGaussian()
Return a normally distributed random number with mean 0 and standard deviation 1.FixedPrecisionApfloatHelper.randomGaussian
(int radix) Return a normally distributed random number with mean 0 and standard deviation 1.Apcomplex.real()
Returns the real part of this apcomplex.Apfloat.real()
Real part of this apfloat.Real part.static Apfloat
Positive integer root.Root.static Apfloat
ApfloatMath.round
(Apfloat x, long precision, RoundingMode roundingMode) Deprecated.static Apfloat
AprationalMath.round
(Aprational x, long precision, RoundingMode roundingMode) Deprecated.FixedPrecisionApfloatHelper.round
(Apfloat x, RoundingMode roundingMode) Deprecated.FixedPrecisionApfloatHelper.roundToInteger
(Apfloat x, RoundingMode roundingMode) Round to integer with specified rounding mode.static Apfloat
ApfloatMath.roundToMultiple
(Apfloat x, Apfloat y, RoundingMode roundingMode) Roundsx
to the nearest multiple ofy
using the specified rounding mode.FixedPrecisionApfloatHelper.roundToMultiple
(Apfloat x, Apfloat y, RoundingMode roundingMode) Round to multiple with specified rounding mode.static Apfloat
ApfloatMath.roundToPlaces
(Apfloat x, long places, RoundingMode roundingMode) Roundsx
to the specified number of places using the specified rounding mode.static Apfloat
AprationalMath.roundToPlaces
(Aprational x, long places, RoundingMode roundingMode) Roundsx
to the specified number of places using the specified rounding mode.FixedPrecisionApfloatHelper.roundToPlaces
(Apfloat x, long places, RoundingMode roundingMode) Round to specified number of places with specified rounding mode.static Apfloat
ApfloatMath.roundToPrecision
(Apfloat x, long precision, RoundingMode roundingMode) Rounds the given number to the specified precision with 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.FixedPrecisionApfloatHelper.roundToPrecision
(Apfloat x, RoundingMode roundingMode) Round to precision with specified rounding mode.static Apfloat
Multiply by a power of the radix.Move the radix point.static Apfloat
Sine.Sine.static Apfloat
Hyperbolic sine.Hyperbolic sine.static Apfloat
Square root.Square root.Subtracts two apfloats.Subtraction.static Apfloat
Sum of numbers.Sum.static Apfloat
Tangent.Tangent.static Apfloat
Hyperbolic tangent.Hyperbolic tangent.static Apfloat
Converts an angle measured in radians to degrees.Convert radians to degrees.static Apfloat
Converts an angle measured in degrees to radians.Convert degrees to radians.Apfloat.toRadix
(int radix) Convert this apfloat to the specified radix.Truncate fractional part.static Apfloat
Returns the unit in the last place of the argument, considering the scale and precision.static Apfloat
Returns the unit in the last place of the argument, considering the scale and precision.Unit in the last place.Unit in the last place.Returns the value with the specified precision.static Apfloat
Lambert W function.Lambert W function.static Apfloat
Riemann zeta function.static Apfloat
Hurwitz zeta function.Riemann zeta function.Hurwitz zeta function.Methods in org.apfloat with parameters of type ApfloatModifier and TypeMethodDescriptionstatic Apfloat
Absolute value.Absolute value.static Apfloat
Inverse cosine.Arc cosine.static Apfloat
Inverse hyperbolic cosine.Hyperbolic arc cosine.Adds two apfloats.Addition.static Apfloat
Arithmetic-geometric mean.Arithmetic-geometric mean.static Apfloat
Inverse sine.Arc sine.static Apfloat
Inverse hyperbolic sine.Hyperbolic arc sine.static Apfloat
Inverse tangent.Arc tangent.static Apfloat
Converts cartesian coordinates to polar coordinates.Angle of point.static Apfloat
Inverse hyperbolic tangent.Hyperbolic arc tangent.static Apfloat
Binomial coefficient.Binomial coefficient.static Apfloat
Cube root.Cube root.static Apint
Ceiling function.Ceiling function.int
Compare this apfloat to the specified apfloat.int
Compare this apint to the specified apfloat.int
Compare this aprational to the specified apfloat.static Apint[]
ApfloatMath.continuedFraction
(Apfloat x, int n) Generates the firstn
terms in the continued fraction representation ofx
.Apfloat[]
FixedPrecisionApfloatHelper.continuedFraction
(Apfloat x, int n) Continued fraction.static Aprational[]
ApfloatMath.convergents
(Apfloat x, int n) Generates the firstn
convergents corresponding to the continued fraction ofx
.Apfloat[]
FixedPrecisionApfloatHelper.convergents
(Apfloat x, int n) Convergents.static Apfloat
Copy sign from one argument to another.Copies the sign from one number to another.static Apfloat
Cosine.Cosine.static Apfloat
Hyperbolic cosine.Hyperbolic cosine.static Apfloat
Digamma function.Digamma function.Divides two apfloats.Division.long
Apfloat.equalDigits
(Apfloat x) Computes number of equal digits.static Apfloat
Exponent function.Exponential function.static Apint
Floor function.Floor function.static Apfloat
Returns x modulo y.Modulus.static Apfloat
Extracts fractional part.Extract fractional part.static Apfloat
Gamma function.static Apfloat
Incomplete gamma function.static Apfloat
Generalized incomplete gamma function.Gamma function.Incomplete gamma function.Generalized incomplete gamma function.static Apfloat
ApfloatMath.hypergeometric0F1
(Apfloat a, Apfloat x) Confluent hypergeometric function 0F1.FixedPrecisionApfloatHelper.hypergeometric0F1
(Apfloat a, Apfloat x) Confluent hypergeometric function 0F1.static Apfloat
ApfloatMath.hypergeometric1F1
(Apfloat a, Apfloat b, Apfloat x) Kummer confluent hypergeometric function 1F1.FixedPrecisionApfloatHelper.hypergeometric1F1
(Apfloat a, Apfloat b, Apfloat x) Kummer confluent hypergeometric function 1F1.static Apfloat
ApfloatMath.hypergeometric2F1
(Apfloat a, Apfloat b, Apfloat c, Apfloat x) Hypergeometric function 2F1.FixedPrecisionApfloatHelper.hypergeometric2F1
(Apfloat a, Apfloat b, Apfloat c, Apfloat x) Hypergeometric function 2F1.static Apfloat
ApfloatMath.inverseRoot
(Apfloat x, long n) Inverse positive integer root.static Apfloat
ApfloatMath.inverseRoot
(Apfloat x, long n, long targetPrecision) Inverse positive integer root.static Apfloat
ApfloatMath.inverseRoot
(Apfloat x, long n, long targetPrecision, Apfloat initialGuess) Inverse positive integer root.static Apfloat
ApfloatMath.inverseRoot
(Apfloat x, long n, long targetPrecision, Apfloat initialGuess, long initialPrecision) Inverse positive integer root.FixedPrecisionApfloatHelper.inverseRoot
(Apfloat x, long n) Inverse root.static Apfloat
Natural logarithm.static Apfloat
Logarithm in arbitrary base.Natural logarithm.Logarithm in specified base.static Apfloat
Logarithm of the gamma function.Logarithm of the gamma function.static Apfloat
Returns the greater of the two values.Maximum value.static Apfloat
Returns the smaller of the two values.Minimum value.Calculates the remainder when divided by an apfloat.Modulus.static Apfloat[]
Split to integer and fractional parts.Apfloat[]
Split to integer and fractional parts.Multiplies two apfloats.Multiplication.static Apfloat
ApfloatMath.multiplyAdd
(Apfloat a, Apfloat b, Apfloat c, Apfloat d) Fused multiply-add.FixedPrecisionApfloatHelper.multiplyAdd
(Apfloat a, Apfloat b, Apfloat c, Apfloat d) Fused multiply-add.static Apfloat
ApfloatMath.multiplySubtract
(Apfloat a, Apfloat b, Apfloat c, Apfloat d) Fused multiply-subtract.FixedPrecisionApfloatHelper.multiplySubtract
(Apfloat a, Apfloat b, Apfloat c, Apfloat d) Fused multiply-subtract.static Apfloat
Deprecated.Usenegate()
.Negation.static Apfloat
Returns the number adjacent to the first argument in the direction of the second argument, considering the scale and precision of the first argument.The number adjacent to the first argument in the direction of the second argument.static Apfloat
Returns the number adjacent to the argument in the direction of negative infinity, considering the scale and precision of the argument.The adjacent value closer to negative infinity.static Apfloat
Returns the number adjacent to the argument in the direction of positive infinity, considering the scale and precision of the argument.The adjacent value closer to positive infinity.static Apfloat
Integer power.static Apfloat
Arbitrary power.Integer power.Power.boolean
Apfloat.preferCompare
(Apfloat x) Tests if the comparison withequals
andcompareTo
should be done in the opposite order.boolean
Aprational.preferCompare
(Apfloat x) static Apfloat
Product of numbers.Product.static Apfloat
Positive integer root.Root.static Apfloat
ApfloatMath.round
(Apfloat x, long precision, RoundingMode roundingMode) Deprecated.FixedPrecisionApfloatHelper.round
(Apfloat x, RoundingMode roundingMode) Deprecated.static Apint
ApfloatMath.roundToInteger
(Apfloat x, RoundingMode roundingMode) Roundsx
to integer using the specified rounding mode.FixedPrecisionApfloatHelper.roundToInteger
(Apfloat x, RoundingMode roundingMode) Round to integer with specified rounding mode.static Apfloat
ApfloatMath.roundToMultiple
(Apfloat x, Apfloat y, RoundingMode roundingMode) Roundsx
to the nearest multiple ofy
using the specified rounding mode.FixedPrecisionApfloatHelper.roundToMultiple
(Apfloat x, Apfloat y, RoundingMode roundingMode) Round to multiple with specified rounding mode.static Apfloat
ApfloatMath.roundToPlaces
(Apfloat x, long places, RoundingMode roundingMode) Roundsx
to the specified number of places using the specified rounding mode.FixedPrecisionApfloatHelper.roundToPlaces
(Apfloat x, long places, RoundingMode roundingMode) Round to specified number of places with specified rounding mode.static Apfloat
ApfloatMath.roundToPrecision
(Apfloat x, long precision, RoundingMode roundingMode) Rounds the given number to the specified precision with the specified rounding mode.FixedPrecisionApfloatHelper.roundToPrecision
(Apfloat x, RoundingMode roundingMode) Round to precision with specified rounding mode.static Apfloat
Multiply by a power of the radix.Move the radix point.static Apfloat
Sine.Sine.static Apfloat
Hyperbolic sine.Hyperbolic sine.static Apfloat
Square root.Square root.Subtracts two apfloats.Subtraction.static Apfloat
Sum of numbers.Sum.static Apfloat
Tangent.Tangent.static Apfloat
Hyperbolic tangent.Hyperbolic tangent.boolean
Tests two apfloat numbers for equality.boolean
boolean
static Apfloat
Converts an angle measured in radians to degrees.Convert radians to degrees.static Apfloat
Converts an angle measured in degrees to radians.Convert degrees to radians.static Apint
Truncates fractional part.Truncate fractional part.static Apfloat
Returns the unit in the last place of the argument, considering the scale and precision.Unit in the last place.Returns the value with the specified precision.static Apfloat
Lambert W function.Lambert W function.static Apfloat
Riemann zeta function.static Apfloat
Hurwitz zeta function.Riemann zeta function.Hurwitz zeta function.Constructors in org.apfloat with parameters of type Apfloat -
Uses of Apfloat in org.apfloat.jscience
Constructors in org.apfloat.jscience with parameters of type ApfloatModifierConstructorDescriptionApfloatField
(Apfloat value) Constructs a new floating-point field object with the specified value.FixedPrecisionApfloatField
(Apfloat value, FixedPrecisionApfloatHelper helper) Constructs a new floating-point field object with the specified value. -
Uses of Apfloat in org.apfloat.samples
Methods in org.apfloat.samples that return ApfloatModifier and TypeMethodDescriptionPi.BinarySplittingSeries.a
(long n) Binary splitting term.Pi.ChudnovskyBinarySplittingSeries.a
(long n) Pi.RamanujanBinarySplittingSeries.a
(long n) Pi.BorweinPiCalculator.execute()
Calculate pi using the Borweins' quartic iteration.Pi.ChudnovskyPiCalculator.execute()
Calculate pi using the Chudnovskys' binary splitting algorithm.Pi.GaussLegendrePiCalculator.execute()
Calculate pi using the Gauss-Legendre iteration.Pi.RamanujanPiCalculator.execute()
Calculate pi using the Ramanujan binary splitting algorithm.PiDistributed.DistributedChudnovskyPiCalculator.execute()
PiDistributed.DistributedRamanujanPiCalculator.execute()
PiParallel.ParallelChudnovskyPiCalculator.execute()
PiParallel.ParallelRamanujanPiCalculator.execute()
ApfloatHolder.getApfloat()
Return the apfloat contained in this bean.Pi.BinarySplittingSeries.p
(long n) Binary splitting term.Pi.ChudnovskyBinarySplittingSeries.p
(long n) Pi.RamanujanBinarySplittingSeries.p
(long n) Pi.BinarySplittingSeries.q
(long n) Binary splitting term.Pi.ChudnovskyBinarySplittingSeries.q
(long n) Pi.RamanujanBinarySplittingSeries.q
(long n) Methods in org.apfloat.samples that return types with arguments of type ApfloatModifier and TypeMethodDescriptionPiAWT.getOperation
(long precision, int radix) Get the calculation operation to execute.PiParallelAWT.getOperation
(long precision, int radix) Methods in org.apfloat.samples with parameters of type ApfloatModifier and TypeMethodDescriptionvoid
ApfloatHolder.setApfloat
(Apfloat apfloat) Set the apfloat contained in this bean.Method parameters in org.apfloat.samples with type arguments of type ApfloatModifier and TypeMethodDescriptionstatic void
Execute an operation and display some additional information.Constructors in org.apfloat.samples with parameters of type ApfloatModifierConstructorDescriptionApfloatHolder
(Apfloat apfloat) Construct an ApfloatHolder containing the specified apfloat.
negate()
.