|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use BaseNumber | |
com.rubecula.jquantity | JQuantity
Contents:
Copyright Notice
Overview
JQuantity Philosophy
Programming Conventions
Package Structure |
Uses of BaseNumber in com.rubecula.jquantity |
Subclasses of BaseNumber in com.rubecula.jquantity | |
class |
Approximation
This Class approximates a value using an immutable double-precision value. |
class |
DivisibleMutable
Interface to define Mutating Divisible arithmetical operations. |
(package private) class |
FuzzInt
This class extends a WholeNumber by adding fuzzy parameters. |
class |
JQuantity
This class represents a quantity, that is to say a value and its units. |
class |
Manifest
This class defines a "manifest" constant (a whole number which cannot be changed). |
class |
MutableNumber
Abstract class from which to derive other concrete classes of mutable numbers. |
class |
Rational
Public class to represent precise rational numbers. |
class |
Value
This class represents a Rational which may be factored in some way. |
class |
WholeNumber
This class is a logical extension of the BigInteger class, but is an actual extension of MutableNumber. |
Fields in com.rubecula.jquantity declared as BaseNumber | |
private BaseNumber[][] |
TwoMatrix._Elements
|
protected BaseNumber |
Rational._Numerator
_Numerator is the numerator of the rational quantity defined by this. |
protected BaseNumber |
Rational._Denominator
_Denominator is the denominator of the rational quantity defined by this. |
private BaseNumber[] |
OneMatrix._Elements
|
static BaseNumber |
MutableNumber.$0
The constant value: 0 |
static BaseNumber |
MutableNumber.$1
The constant value: 1 |
static BaseNumber |
MutableNumber.$2
The constant value: 2 |
static BaseNumber |
MutableNumber.$3
The constant value: 3 |
static BaseNumber |
MutableNumber.$10
The constant value: 10 |
static BaseNumber |
MutableNumber.$__1
The constant value: -1 |
private BaseNumber |
JQuantity._Number
The value of this JQuantity. |
Methods in com.rubecula.jquantity that return BaseNumber | |
BaseNumber |
WholeNumber.minus()
Method to yield a copy of this but with the sign changed. |
protected BaseNumber |
WholeNumber.scaled(long multiplicand)
Method to multiply multiplicand by this and return their product as the result. |
protected BaseNumber |
WholeNumber.pow(int power)
Method to raise this to the power power return the result. |
static BaseNumber |
Value.valueOf(java.lang.String string,
java.lang.String id)
Translates the String representation of a Value into an explicitly identified Value. |
static BaseNumber |
Value.valueOf(java.lang.String string)
Translates the String representation of a Value into Value, identified by the string itself. |
protected BaseNumber |
Value.pow(double power)
|
BaseNumber |
TwoMatrix.getElement(int[] indices)
|
BaseNumber |
TwoMatrix.getElement(int row,
int column)
|
BaseNumber |
SparseMatrix.getElement(int[] indices)
|
static BaseNumber |
Rational.valueOf(java.lang.String string,
java.lang.String id)
Convenience factory method to create a new Rational instance from a value string and an explicit identifier. |
static BaseNumber |
Rational.valueOf(java.lang.String string)
Convenience factory method to create a new Rational instance from a value string and an implicit identifier (the value string itself). |
protected BaseNumber |
Rational.getDenominator()
Method to access the denominator of this Rational object. |
protected BaseNumber |
Rational.getNumerator()
Method to access the numerator of this Rational object. |
protected BaseNumber |
Rational.minus()
Method to yield a copy of this but with the sign changed. |
protected BaseNumber |
Rational.scaled(long multiplicand)
Method to multiply multiplicand by this and return their product as the result. |
protected BaseNumber |
Rational.pow(int power)
Method to raise this to the power power return the result. |
protected BaseNumber |
Rational.pow(double power)
Method to yield this raised to a double-precision power. |
private static BaseNumber |
Rational.WidenIntegral(BaseNumber number)
Method to convert an Integral object into an Arithmutable object if necessary. |
private static BaseNumber |
Rational.SafeReference(BaseNumber x)
This method yields a reference to a BaseNumber (the numerator or denominator) for the purpose of cloning/copying a Rational object safely. |
BaseNumber |
OneMatrix.getElement(int[] indices)
|
BaseNumber |
OneMatrix.getElement(int i)
Method to get the ith element of this OneMatrix. |
protected BaseNumber |
MutableNumber.sum(BaseNumber addend)
Method to add addend to this and return their sum as the result. |
protected BaseNumber |
MutableNumber.product(BaseNumber multiplicand)
Method to multiply multiplicand to this and return their product as the result. |
private BaseNumber |
MutableNumber.opDyadic(int operator,
BaseNumber operand)
Method to operate on this number and operand according to operator. |
private BaseNumber |
MutableNumber.opDyadicNoRecurse(int operator,
BaseNumber operand)
Method to add addend to this and return their sum as the result. |
protected BaseNumber |
MutableNumber.factored(Integral factor)
Method to divide this exactly by factor and return the quotient as the result. |
private static BaseNumber |
Mill.BaseNumberProduct(BaseNumber operand1,
BaseNumber operand2)
Static method to get the product of two BaseNumbers. |
BaseNumber |
Manifest.minus()
Method to fulfill contract defined by BaseNumber. |
BaseNumber |
Manifest.sum(BaseNumber addend)
Method to add addend to this and return their sum as the result. |
BaseNumber |
Manifest.difference(BaseNumber subtrahend)
Method to yield the difference of this less a BaseNumber (subtrahend). |
BaseNumber |
Manifest.product(BaseNumber multiplicand)
Method to multiply multiplicand by this and return their product as the result. |
BaseNumber |
Manifest.scaled(long factor)
Method to multiply multiplicand by this and return their product as the result. |
BaseNumber |
Manifest.pow(int power)
Method to raise this to the power power return the result. |
static BaseNumber |
JQuantity.valueOf(java.lang.String presentation)
Constructs a dimensionless JQuantity from a String representing a number. |
static BaseNumber |
JQuantity.valueOf(Presentable presentable)
|
BaseNumber |
JQuantity.product(BaseNumber multiplicand)
Method to implement form the product of this JQuantity and a BaseNumber. |
protected BaseNumber |
JQuantity.sum(BaseNumber addend)
Method to determine the sum of a quantity with a base number. |
protected BaseNumber |
JQuantity.pow(int power)
|
protected BaseNumber |
JQuantity.scaled(long scale)
Method to multiply this quantity by an integral scale factor. |
protected BaseNumber |
JQuantity.minus()
Method to implement BaseNumber. |
protected BaseNumber |
JQuantity.getNumber()
Accessor method to get the number represented by this JQuantity. |
BaseNumber |
Integral.minus()
Method to yield a copy of this but with the sign changed. |
protected BaseNumber |
FuzzInt.pow(Integral power)
Method to raise this to the power power return the result. |
BaseNumber |
CompoundModel.getElement(int[] indices)
Method to get the value of the element specified by the indices given. |
static BaseNumber |
BaseNumber.valueOf(java.lang.String string,
java.lang.String id)
Factory method to create a BaseNumber from a String string, optionally identified by id. |
static BaseNumber |
BaseNumber.valueOf(java.lang.String string)
Factory method to create a BaseNumber from a String string, without an explicit identifier (the string itself is used as the id). |
protected abstract BaseNumber |
BaseNumber.minus()
Method to yield a copy of this but with the sign changed. |
protected abstract BaseNumber |
BaseNumber.sum(BaseNumber addend)
Method to add addend to this and return their sum as the result. |
protected BaseNumber |
BaseNumber.difference(BaseNumber subtrahend)
Method to yield the difference of this less a BaseNumber (subtrahend). |
protected abstract BaseNumber |
BaseNumber.product(BaseNumber multiplicand)
Method to multiply multiplicand by this and return their product as the result. |
protected abstract BaseNumber |
BaseNumber.scaled(long factor)
Method to multiply multiplicand by this and return their product as the result. |
protected abstract BaseNumber |
BaseNumber.pow(int power)
Method to raise this to the power power return the result. |
protected BaseNumber |
BaseNumber.abs()
Method to yield this or a copy with the sign changed, depending whether the value is positive or negative. |
static BaseNumber |
Approximation.valueOf(java.lang.String valueString)
Method to create an approximation from a string which represents a double, optionally followed by "*" to indicate fuzziness in the last digit. |
protected BaseNumber |
Approximation.scaled(long factor)
Method to yield the result of scaling an approximation by a factor. |
protected BaseNumber |
Approximation.product(BaseNumber multiplicand)
Method to yield the product of this approximation with a BaseNumber. |
protected BaseNumber |
Approximation.sum(BaseNumber addend)
Method to yield the sum of this approximation with a BaseNumber. |
protected BaseNumber |
Approximation.square()
Method to yield the square of this value. |
protected BaseNumber |
Approximation.pow(int power)
Method to yield the value of this to a power. |
protected BaseNumber |
Approximation.pow(double power)
Method to yield the value of this to a power. |
protected BaseNumber |
Approximation.minus()
Method to return this but with changed sign. |
Methods in com.rubecula.jquantity with parameters of type BaseNumber | |
static WholeNumber |
WholeNumber.valueOf(BaseNumber number)
Factory method to create a WholeNumber from an instance of BaseNumber, which is also Integral. |
void |
WholeNumber.add(BaseNumber that)
MUTATING Instance method to add another Arithmetical into this object. |
void |
WholeNumber.multiply(BaseNumber that)
MUTATING Instance method to multiply another BaseNumber into this object. |
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. |
void |
Value.add(BaseNumber that)
MUTATING Instance method to add another BaseNumber into this object. |
void |
Value.multiply(BaseNumber that)
MUTATING Instance method to multiply another Arithmetical into this object. |
void |
Value.divide(BaseNumber that)
MUTATING method to replace this by the quotient of this and that |
Divisible |
TwoMatrix.quotient(BaseNumber divisor)
|
void |
TwoMatrix.setElement(int[] indices,
BaseNumber element)
|
void |
TwoMatrix.setElement(int row,
int column,
BaseNumber element)
|
Divisible |
SparseMatrix.quotient(BaseNumber divisor)
|
void |
SparseMatrix.setElement(int[] indices,
BaseNumber element)
|
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. |
void |
Rational.add(BaseNumber that)
|
void |
Rational.multiply(BaseNumber that)
|
void |
Rational.divide(BaseNumber that)
MUTATING method to replace this by the sum of this and that |
Divisible |
Rational.quotient(BaseNumber divisor)
Method to divide this by multiplicand and return the quotient as the result. |
protected void |
Rational.multiplyTopAndBottom(BaseNumber factor)
MUTATING method to multiply the top and bottom of a rational equally. |
private static BaseNumber |
Rational.WidenIntegral(BaseNumber number)
Method to convert an Integral object into an Arithmutable object if necessary. |
private void |
Rational.setNumerator(BaseNumber numerator)
MUTATING method to set the value of the numerator. |
private void |
Rational.setDenominator(BaseNumber denominator)
MUTATING method to set the value of the denominator. |
private static BaseNumber |
Rational.SafeReference(BaseNumber x)
This method yields a reference to a BaseNumber (the numerator or denominator) for the purpose of cloning/copying a Rational object safely. |
void |
OneMatrix.setElement(int[] indices,
BaseNumber element)
|
Divisible |
OneMatrix.quotient(BaseNumber divisor)
|
protected BaseNumber |
MutableNumber.sum(BaseNumber addend)
Method to add addend to this and return their sum as the result. |
protected BaseNumber |
MutableNumber.product(BaseNumber multiplicand)
Method to multiply multiplicand to this and return their product as the result. |
private BaseNumber |
MutableNumber.opDyadic(int operator,
BaseNumber operand)
Method to operate on this number and operand according to operator. |
private BaseNumber |
MutableNumber.opDyadicNoRecurse(int operator,
BaseNumber operand)
Method to add addend to this and return their sum as the result. |
private static Millable |
Mill.EvaluatePower(int power,
BaseNumber number)
|
private static Millable |
Mill.Invert(int power,
BaseNumber number)
|
private static BaseNumber |
Mill.BaseNumberProduct(BaseNumber operand1,
BaseNumber operand2)
Static method to get the product of two BaseNumbers. |
BaseNumber |
Manifest.sum(BaseNumber addend)
Method to add addend to this and return their sum as the result. |
BaseNumber |
Manifest.difference(BaseNumber subtrahend)
Method to yield the difference of this less a BaseNumber (subtrahend). |
BaseNumber |
Manifest.product(BaseNumber multiplicand)
Method to multiply multiplicand by this and return their product as the result. |
Divisible |
JQuantity.quotient(BaseNumber divisor)
Method to divide this by multiplicand and return the quotient as the result. |
BaseNumber |
JQuantity.product(BaseNumber multiplicand)
Method to implement form the product of this JQuantity and a BaseNumber. |
protected BaseNumber |
JQuantity.sum(BaseNumber addend)
Method to determine the sum of a quantity with a base number. |
void |
FuzzInt.add(BaseNumber that)
MUTATING Instance method to add another BaseNumber into this object. |
void |
FuzzInt.multiply(BaseNumber that)
MUTATING Instance method to multiply another BaseNumber into this object. |
private static Item |
Expression.OpDyadicNonComplex(Item current,
Operator currentOp,
BaseNumber number)
Note that the order of the operands is the reverse of the true order. |
abstract void |
DivisibleMutable.divide(BaseNumber divisor)
MUTATING method to replace this with quotient of this over divisor. |
Divisible |
Divisible.quotient(BaseNumber divisor)
Method to divide this by divisor and return the quotient as the result. |
void |
CompoundModel.setElement(int[] indices,
BaseNumber element)
Method to set the value of the element specified by the indices given. |
static Complex |
Complex.valueOf(BaseNumber number)
Factory method to create a real-valued Complex from a BaseNumber. |
Divisible |
Complex.quotient(BaseNumber divisor)
Method to divide this by divisor and return the quotient as the result. |
Complex |
Complex.pow(BaseNumber power)
Method to yield this raised to the power specified. |
protected abstract BaseNumber |
BaseNumber.sum(BaseNumber addend)
Method to add addend to this and return their sum as the result. |
protected BaseNumber |
BaseNumber.difference(BaseNumber subtrahend)
Method to yield the difference of this less a BaseNumber (subtrahend). |
protected abstract BaseNumber |
BaseNumber.product(BaseNumber multiplicand)
Method to multiply multiplicand by this and return their product as the result. |
boolean |
BaseNumber.isEqual(BaseNumber other)
Method to determine effect equality with another BaseNumber. |
void |
Arithmutable.add(BaseNumber addend)
MUTATING Instance method to add another Arithmetical into this object. |
void |
Arithmutable.multiply(BaseNumber multiplicand)
MUTATING Instance method to multiply another Arithmetical into this object. |
Divisible |
Approximation.quotient(BaseNumber divisor)
Method to yield the quotient of this approximation divided by a BaseNumber. |
protected BaseNumber |
Approximation.product(BaseNumber multiplicand)
Method to yield the product of this approximation with a BaseNumber. |
protected BaseNumber |
Approximation.sum(BaseNumber addend)
Method to yield the sum of this approximation with a BaseNumber. |
Constructors in com.rubecula.jquantity with parameters of type BaseNumber | |
TwoMatrix(BaseNumber[][] elements,
int rows,
int columns)
|
|
Row(BaseNumber[] elements)
|
|
OneMatrix(BaseNumber[] elements)
|
|
JQuantity(BaseNumber number,
Measurable units)
Primary constructor for a new JQuantity. |
|
JQuantity(BaseNumber number)
Constructor for a new dimensionless JQuantity. |
|
Approximation(BaseNumber value)
Primary constructor to create a new Approximation equivalent to a given BaseNumber. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |