Uses of Class
eu.bandm.tools.ops.Rational
Packages that use Rational
Package
Description
Types for fundamental mathematical structures, plus libraries of respective
constants and operators.
Runtime library for generated option processing code: building blocks for
parsing and GUI.
-
Uses of Rational in eu.bandm.tools.ops
Fields in eu.bandm.tools.ops declared as RationalModifier and TypeFieldDescriptionstatic final Rational
Rational.ONE
evidentstatic final Rational
Rational.ONE_HALF
evidentstatic final Rational
Rational.TWO
evidentstatic final Rational
Rational.ZERO
evidentFields in eu.bandm.tools.ops with type parameters of type RationalModifier and TypeFieldDescriptionstatic final GenMonoid
<BigInteger, Rational> Rational.addition
evidentprotected static Map
<Rational, PrimeFactors> PrimeFactors.cache_rat
static final GenMonoid
<BigInteger, Rational> Rational.multiplication
evidentMethods in eu.bandm.tools.ops that return RationalModifier and TypeMethodDescriptionRational.abs()
Return the absolute (positive) valueReturn the normalized addition result.Rational.divide
(long factor) Return the normalized division result.Return the normalized division result.Rational.inverse()
Return the normalized inverse result.Return the larger of this and x.Return the smaller of this and x.Returns the fractional rest of the division by x, with "this/x" defined as with integer division, namely rounding towards zero, not towards negative infinity.Rational.multiply
(long factor) Return the normalized multiplication result.Return the normalized multiplication result.Rational.negate()
Return the normalized negation.static final Rational
Rational.ofAdditive
(String n) Parser of the commonplace "additive" writing.Rational.power
(int n) Return the normalized power of this to the exponent n.PrimeFactors.ratValue()
Return the rational value.Return the normalized subtraction result.static final Rational
Rational.valueOf
(long n) evidentstatic final Rational
Rational.valueOf
(long n, long d) evidentstatic final Rational
Parser.static final Rational
Rational.valueOf
(BigDecimal n) evidentstatic final Rational
Rational.valueOf
(BigInteger n) evident.static final Rational
Rational.valueOf
(BigInteger n, BigInteger d) evidentMethods in eu.bandm.tools.ops with parameters of type RationalModifier and TypeMethodDescriptionReturn the normalized addition result.int
Return the normalized division result.static boolean
PrimeFactors.isPrimePower
(Rational r) Whether the argument is a power (possibly with an exponent ==0) of only one single basis.Return the larger of this and x.Return the smaller of this and x.Returns the fractional rest of the division by x, with "this/x" defined as with integer division, namely rounding towards zero, not towards negative infinity.Return the normalized multiplication result.static PrimeFactors
Returns the prime factor map for the given value.Return the normalized subtraction result. -
Uses of Rational in eu.bandm.tools.option.runtime
Fields in eu.bandm.tools.option.runtime declared as RationalModifier and TypeFieldDescriptionprotected static final Rational
Model.dummyRat
Dummy value returned in case of parsing error.Methods in eu.bandm.tools.option.runtime that return RationalModifier and TypeMethodDescriptionGui.Field_rational.get_value()
protected Rational
Model.parseRational()
Parser function, only called from the compiled code when a rational argument representation must necessarily be consumed, according to the current option's type grammar.Methods in eu.bandm.tools.option.runtime with parameters of type Rational