Uses of Class
org.apfloat.Aprational
Packages that use Aprational
Package
Description
The apfloat Application Programming Interface (API).
JScience wrapper for apfloat.
-
Uses of Aprational in org.apfloat
Subclasses of Aprational in org.apfloatMethods in org.apfloat that return AprationalModifier and TypeMethodDescriptionstatic Aprational
AprationalMath.abs
(Aprational x) Absolute value.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 firstn
convergents corresponding to the continued fraction ofx
.static Aprational[]
AprationalMath.convergents
(Aprational x, int n) Generates the firstn
convergents corresponding to the continued fraction ofx
.static Aprational
AprationalMath.copySign
(Aprational x, Aprational y) Copy sign from one argument to another.Aprational.divide
(Aprational x) Divides two aprational numbers.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.mod
(Aprational x) Calculates the remainder when divided by an aprational.Aprational.multiply
(Aprational x) Multiplies two aprational numbers.Aprational.negate()
Negative value.static Aprational
AprationalMath.negate
(Aprational x) Deprecated.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) Roundsx
to the nearest multiple ofy
using the specified rounding mode.static Aprational
AprationalMath.scale
(Aprational x, long scale) Multiply by a power of the radix.Aprational.subtract
(Aprational x) Subtracts two aprational numbers.static Aprational
AprationalMath.sum
(Aprational... x) Sum of numbers.Aprational.toRadix
(int radix) Convert this aprational to the specified radix.Methods in org.apfloat with parameters of type AprationalModifier and TypeMethodDescriptionstatic Aprational
AprationalMath.abs
(Aprational x) Absolute value.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 firstn
terms in the continued fraction representation ofx
.static Aprational[]
AprationalMath.convergents
(Aprational x, int n) Generates the firstn
convergents corresponding to the continued fraction ofx
.static Aprational
AprationalMath.copySign
(Aprational x, Aprational y) Copy sign from one argument to another.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.mod
(Aprational x) Calculates the remainder when divided by an aprational.Aprational.multiply
(Aprational x) Multiplies two aprational numbers.static Aprational
AprationalMath.negate
(Aprational x) Deprecated.Usenegate()
.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.static Apint
AprationalMath.roundToInteger
(Aprational x, RoundingMode roundingMode) Roundsx
to integer using the specified rounding mode.static Aprational
AprationalMath.roundToMultiple
(Aprational x, Aprational y, RoundingMode roundingMode) Roundsx
to the nearest multiple ofy
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.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.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
Constructors in org.apfloat.jscience with parameters of type AprationalModifierConstructorDescriptionAprationalField
(Aprational value) Constructs a new rational field object with the specified value.
negate()
.