Uses of Class
com.rubecula.jquantity.Rational

Packages that use Rational
com.rubecula.jquantity

JQuantity Contents: Copyright Notice Overview JQuantity Philosophy Programming Conventions Package Structure
Class Structure Links Important Note about the links to classes in this document:  This document appears in two different places: the source tree and the doc tree (where it is placed by the javadoc program). 

com.rubecula.units JQuantity/units. 
 

Uses of Rational in com.rubecula.jquantity
 

Subclasses of Rational in com.rubecula.jquantity
 class Value
          This class represents a Rational which may be factored in some way.
 

Fields in com.rubecula.jquantity declared as Rational
private static Rational[] Value.ConversionFactors
          The conversion factors for the various schemes, in order: 1, pi, e.
static Rational Rational.$1
          $1 is the Rational representation of the exact value 1.
static Rational Rational.$0
          $0 is the Rational representation of the exact value 0.
static Rational Rational.$10
          $10 is the Rational representation of the exact value 10.
static Rational Rational.$2
          $2 is the Rational representation of the exact value 2.
static Rational Rational.$1_2
          $1_2 is the Rational representation of the exact value 1/2.
static Rational Rational.$Infinity
          $Infinity is the Rational representation of the (exact) value of infinity, i.e. 1/0.
static Rational Rational.$E
          Value of E as a Rational.
static Rational Rational.$Pi
          Value of Pi as a Rational.
static Rational Rational.$3
           
(package private) static Rational Rational.$6
           
(package private) static Rational Rational.$12
           
(package private) static Rational Rational.$NaN
           
(package private) static Rational Rational.$_Pi_2
           
(package private) static Rational Rational.$_Pi_4
           
static Rational Rational.$_Log10_E
           
(package private) static Rational Rational.$Rt2
          InitialValueOf($S_Rt2).
(package private) static Rational Rational.$Rt3
          InitialValueOf($S_Rt3).
(package private) static Rational Rational.$Rt5
          InitialValueOf($S_Rt5).
(package private) static Rational Rational.$_Tan15Deg
          2 - $Rt3.
(package private) static Rational Rational.$_Tan22_5Deg
          1 / (1 + Rt2).
(package private) static Rational Rational.$_Tan30Deg
          1/$Rt3.
(package private) static Rational Rational.$_c
          By definition, the velocity of light (in meter/second).
(package private) static Rational Rational.$_g
          By definition, the standard (mean) gravity at the Earth's surface: 9.80665.
static Rational Rational.$_degR
          Degrees Rankine/Kelvin conversion: 5/9.
(package private) static Rational Rational.$_degF
          Degrees Fahrenheit/Celsius offset: 32.
 

Methods in com.rubecula.jquantity that return Rational
static Rational Value.Parse(SymbolicPresentation presentation, java.lang.String identifier)
          Class method to translate the given SymbolicPresentation representation of a Value into a Value.
static Rational Value.valueOf(BaseNumber number)
          Factory method to create a "constant" Value from a BaseNumber or, if number is Value, then to make a copy.
private  Rational Value.getConversionFactor()
           
(package private)  Rational Value.toRational()
          Method to narrows this object to a Rational..
(package private)  Rational Value.root(int p)
          method root: to yield an exact (integer) Rational for the root of a positive integral Rational.
 Rational Value.transcendentalExp.getValue(Rational x)
           
 Rational Value.transcendentalExp.getDerivative(Rational x)
           
 Rational Value.transcendentalLog.getValue(Rational x)
           
 Rational Value.transcendentalLog.getDerivative(Rational x)
           
 Rational Value.transcendentalTanThetaBy2.getValue(Rational x)
           
 Rational Value.transcendentalTanThetaBy2.getDerivative(Rational theta)
           
 Rational Value.transcendental2Arctan.getValue(Rational x)
           
 Rational Value.transcendental2Arctan.getDerivative(Rational x)
           
 Rational Value.transcendentalSqrt.getValue(Rational x)
           
 Rational Value.transcendentalSqrt.getDerivative(Rational x)
           
 Rational Value.transcendentalSquare.getValue(Rational x)
           
 Rational Value.transcendentalSquare.getDerivative(Rational x)
           
 Rational Transcendental.getValue(Rational argument)
          This method must be provided to yield the value of the transcendental function for the given argument.
 Rational Transcendental.getDerivative(Rational argument)
          This method must be provided to yield the value of the first derivative of the function for the given argument.
static Rational Rational.Parse(NumberPresentation presentation, java.lang.String identifier)
          Translates the NumberPresentation representation into a new Rational.
static Rational Rational.valueOf(BaseNumber number)
          Factory method to create a Rational from a BaseNumber or, if number is Rational, then to make a copy.
 Rational Rational.minusRational()
          Method to yield a copy of this but with the sign changed.
 Rational Rational.sumRational(Rational addend)
          Method to add addend to this and return their sum as the result.
(package private)  Rational Rational.differenceRational(Rational subtrahend)
          Method to yield the difference of this less a BaseNumber (subtrahend).
 Rational Rational.productRational(Rational multiplicand)
          Method to multiply multiplicand to this and return their product as the result.
(package private)  Rational Rational.quotientRational(Rational that)
           
 Rational Rational.inverseRational()
           
(package private) static Rational Rational.valueOfExponent(int exponent, int radix)
          Factory method to create a Rational which is equal to radix^exponent.
(package private) static Rational Rational.valueOfExponent(int exponent)
          Factory method to create a Rational which is equal to 10^exponent.
(package private) static Rational Rational.valueOfExponent(java.lang.String exponentStr, int radix)
          Factory method to create a Rational which is equal to the multiplier represented by an exponent string.
static Rational Rational.valueOf(double value, int precision, java.lang.String identifier)
          Factory method to create a Rational from a double value, given an indication of precision.
static Rational Rational.valueOf(double value, double bound, int model, java.lang.String identifier)
          Factory method to create a Rational from a double value, given an indication of precision.
static Rational Rational.valueOf(double value, double bound, int model)
          Factory method to create a Rational from a double value, given an indication of precision.
static Rational Rational.valueOf(double value, java.lang.String identifier)
          Factory method to create a Rational from a double value, using standard double precision and with an explicit identifier.
static Rational Rational.valueOf(double value, boolean exact)
          Factory method to create a Rational from a double value, that may or not be "exact".
static Rational Rational.valueOf(double value)
          Factory method to create a Rational from an exact double value.
static Rational Rational.valueOf(float value, java.lang.String identifier)
          Factory method to create a Rational from a float value without an explicit identifier.
static Rational Rational.valueOf(float value)
          Factory method to create a Rational from a float value, given an explicit identifier.
(package private) static Rational Rational.valueOf(java.math.BigInteger integer, java.math.BigInteger fraction, int places)
          Factory method to create a (decimal) Rational from two (big) integers.
 Rational Rational.absRational()
          Method to yield the absolute (unsigned) value of this as a Rational.
 Rational Rational.half()
          Method to yield half the value of this.
(package private)  Rational Rational.modulo(long x)
          Method to return the value of this modulo x
(package private)  Rational Rational.fold(Rational range)
          Method to force this into a specific range.
(package private)  Rational Rational.normalizeToInt(double tolerance)
          Normalize this Rational so that the result: a) has a denominator unity and b) approximates this in value, to within tolerance.
(package private)  Rational Rational.normalizeToBigDecimal(double tolerance)
          Normalize this such that the denominator is a power of ten AND the value of the result differs from the value of this by not more than the tolerance.
private static Rational Rational.BigDecimalRational(java.math.BigInteger top, java.math.BigInteger bottom, double tolerance, int characteristic, java.lang.String id)
          Class method to yield an explicitly identified Rational which approximates top/bottom to within tolerance (to exponent characteristic).
(package private)  Rational Rational.root(int p)
          method root: to yield an exact (integer) Rational for the root of a positive integral Rational.
(package private)  Rational Rational.squareRational()
          Method to return the Rational formed my multiplying this by itself.
static Rational Rational.valueOf(Presentation presentation)
          Convert Presentation presentation into a Rational.
 Rational Rational.pow(Rational power)
           
static Rational Rational.InitialValueOf(java.lang.String string)
          Create a constant value of a Rational from a string.
private static Rational Rational.InitParse(Presentation presentation, java.lang.String id)
           
 Rational JQuantity.getScale()
          Method to return the scale of this Measurable.
 Rational JQuantity.getOffset()
          Method to return the offset of this Measurable.
 

Methods in com.rubecula.jquantity with parameters of type Rational
 void Value.scale(Rational that)
          MUTATING Instance method to multiply another Arithmetical into this object.
 Rational Value.transcendentalExp.getValue(Rational x)
           
 Rational Value.transcendentalExp.getDerivative(Rational x)
           
 Rational Value.transcendentalLog.getValue(Rational x)
           
 Rational Value.transcendentalLog.getDerivative(Rational x)
           
 Rational Value.transcendentalTanThetaBy2.getValue(Rational x)
           
 Rational Value.transcendentalTanThetaBy2.getDerivative(Rational theta)
           
 Rational Value.transcendental2Arctan.getValue(Rational x)
           
 Rational Value.transcendental2Arctan.getDerivative(Rational x)
           
 Rational Value.transcendentalSqrt.getValue(Rational x)
           
 Rational Value.transcendentalSqrt.getDerivative(Rational x)
           
 Rational Value.transcendentalSquare.getValue(Rational x)
           
 Rational Value.transcendentalSquare.getDerivative(Rational x)
           
 Rational Transcendental.getValue(Rational argument)
          This method must be provided to yield the value of the transcendental function for the given argument.
 Rational Transcendental.getDerivative(Rational argument)
          This method must be provided to yield the value of the first derivative of the function for the given argument.
 Rational Rational.sumRational(Rational addend)
          Method to add addend to this and return their sum as the result.
(package private)  Rational Rational.differenceRational(Rational subtrahend)
          Method to yield the difference of this less a BaseNumber (subtrahend).
 Rational Rational.productRational(Rational multiplicand)
          Method to multiply multiplicand to this and return their product as the result.
(package private)  Rational Rational.quotientRational(Rational that)
           
protected  void Rational.addTops(Rational other)
           
 void Rational.subtract(Rational that)
          MUTATING method to replace this by the difference of this and that
(package private)  Rational Rational.fold(Rational range)
          Method to force this into a specific range.
 Rational Rational.pow(Rational power)
           
protected  int Rational.compareTo(Rational val, boolean absolute)
          Compares this Rational with the specified Rational.
 int Rational.compareTo(Rational val)
          Compares this Rational with the specified Rational.
 Complex Complex.factored(Rational factor)
          Method to yield the quotient of this divided by factor, and return it as the result.
 

Constructors in com.rubecula.jquantity with parameters of type Rational
Value(Rational base, int scheme, java.lang.String id)
          Primary constructor to instantiate a Value, based on a given Rational (base) and factored with a specific scheme (scheme).
Value(Rational base, int scheme)
          Secondary constructor to instantiate a Value, based on a given Rational (base) and factored with a specific scheme (scheme).
Value(Rational base)
          Secondary constructor to instantiate a value, based on a given Rational (base) and factored with the trivial scheme ($FactorNone).
Rational(Rational source)
          Constructor to make a copy of a Rational object.
 

Uses of Rational in com.rubecula.units
 

Fields in com.rubecula.units declared as Rational
private  Rational UnitsName._Dimension
           
private  Rational Units._Scale
           
private  Rational Units._Offset
           
private  Rational Units._PowerA
           
private  Rational Units._PowerB
           
static Rational Units.Ten
           
static Rational Units.Tenth
           
static Rational Units.Hundred
           
static Rational Units.Hundredth
           
static Rational Units.Thousand
           
static Rational Units.Thousandth
           
private static Rational Units.$60
           
private  Rational FlatUnit._Scale
          The scale of this flattened unit.
 

Methods in com.rubecula.units that return Rational
 Rational Units.getScale()
           
 Rational Units.getOffset()
           
 Rational Units.scaleToUnits(Measurable base, Rational value)
          This method converts value which is expressed in this Units into a value expressed in base units.
private static Rational Units.nonZeroDivide(Rational num, long denom)
           
 Rational SiUnit.getScale()
          Method to return the scale of this Measurable.
 Rational SiUnit.getOffset()
          Method to return the offset of this Measurable.
 Rational Measurable.getScale()
          Method to return the scale of this Measurable.
 Rational Measurable.getOffset()
          Method to return the offset of this Measurable.
 Rational FlatUnit.getScale()
          Method to return the scale of this Measurable.
 Rational FlatUnit.getOffset()
          Method to return the offset of this Measurable.
 Rational Dimensions.getPower(int dimension)
           
 

Methods in com.rubecula.units with parameters of type Rational
(package private) static java.lang.String UnitsName.ExpString(Rational x)
           
(package private)  UnitsName UnitsName.multiply(Rational x)
           
(package private)  Units Units.scale(UnitsName name, Rational scale, SystemFlag system)
          Scale this unit and assign a new name and system to the result.
 Units Units.scale(UnitsName name, Rational scale)
          Scale this unit and assign a new name to the result.
(package private)  Units Units.scale(Rational scale)
          Scale this unit.
(package private)  Units Units.combine(Rational powerA, Measurable B, Rational powerB)
           
 Units Units.sum(Measurable addend, Rational power)
           
 Units Units.productScalar(Rational power)
           
 Rational Units.scaleToUnits(Measurable base, Rational value)
          This method converts value which is expressed in this Units into a value expressed in base units.
private static Rational Units.nonZeroDivide(Rational num, long denom)
           
(package private)  Dimensions Dimensions.productScalar(Rational power)
           
 

Constructors in com.rubecula.units with parameters of type Rational
UnitsName(java.lang.String name, java.lang.String abbreviation, int exponent, Rational dimension, boolean derived)
           
UnitsName(java.lang.String name, java.lang.String abbreviation, int exponent, Rational dimension)
           
Units(UnitsName name, SystemFlag system, Rational scale, Rational powerA, Measurable A, Rational powerB, Measurable B, Rational offset)
           
Units(UnitsName name, SystemFlag system, Rational scale, Rational powerA, Measurable A, Rational powerB, Measurable B)
           
Units(UnitsName name, SystemFlag system, Rational scale, Rational powerA, Measurable A)
           
Units(UnitsName name, SystemFlag system, Rational scale, Measurable A)
           
FlatUnit(Dimensions dimensions, Rational scale)
          Primary constructor to create a FlatUnit.