REAL
- this real type (used to facilitate operation chaining on write
operations)public abstract class AbstractReal<REAL extends Real<REAL>> extends AbstractScalar<REAL> implements Real<REAL>
real
numbers, either boolean
vector, unlimited
array representation or text
NaN, ONEI, ZERO_DOUBLE_LONG_BITS, ZERO_FLOAT_INT_BITS, ZEROI
Constructor and Description |
---|
AbstractReal() |
AbstractReal(Domain aDomain,
NumericPrecision aPrecision) |
AbstractReal(NumericPrecision aPrecision) |
Modifier and Type | Method and Description |
---|---|
REAL |
and(BigInteger aValue)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
REAL |
andOfNumber(Number aNumber)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
REAL |
andOfReal(SealedReal<?> aValue)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
REAL |
angleWithReal(SealedReal<?> aValue)
Set this value to the angle formed by the rectangular coordinates given
by the current value, x, and the specified value, y.
|
int |
compareToNumber(Number aValue)
Compares this object with the specified object for order
|
int |
compareToReal(BigDecimal aReal)
Compares this object with the specified object for order
|
int |
compareToReal(BigInteger aReal)
Compares this object with the specified object for order
|
int |
compareToReal(SealedReal<?> aValue)
Compares this object with the specified object for order
|
REAL |
difference(BigDecimal aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
REAL |
difference(BigInteger aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
REAL |
differenceOfNumber(Number aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
REAL |
differenceOfReal(SealedReal<?> aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
boolean |
equals(Object anObject) |
REAL |
gcd(BigInteger aValue)
Replace the current value with the greatest common denonimator between
this value and the specific one
|
REAL |
gcdOfNumber(Number aNumber)
Replace the current value with the greatest common factor between this
value and the specific one
|
REAL |
gcdOfReal(Real<?> aValue)
Replace the current value with the greatest common denonimator between
this value and the specific one
|
REAL |
hypotenuseWithReal(SealedReal<?> aValue)
Set this value to the hypotenuse formed by the square root of the sum of
the square of the current value, x, and the square of the
specified value, y, without intermediate overflow or underflow
|
<R extends Real<?>> |
induceRealSize(R aTarget)
Update the target
scalar with the element count in this
structure |
boolean |
isEqual(BigDecimal aReal) |
boolean |
isEqual(BigInteger aReal) |
boolean |
isEqualToNumber(Number aNumber) |
boolean |
isEqualToReal(SealedReal<?> aValue) |
boolean |
isGreater(BigDecimal aReal) |
boolean |
isGreater(BigInteger aReal) |
boolean |
isGreaterOrEqual(BigDecimal aReal) |
boolean |
isGreaterOrEqual(BigInteger aReal) |
boolean |
isGreaterOrEqualToNumber(Number aNumber) |
boolean |
isGreaterOrEqualToReal(SealedReal<?> aValue) |
boolean |
isGreaterThanNumber(Number aNumber) |
boolean |
isGreaterThanReal(SealedReal<?> aValue) |
boolean |
isLess(BigDecimal aReal) |
boolean |
isLess(BigInteger aReal) |
boolean |
isLessOrEqual(BigDecimal aReal) |
boolean |
isLessOrEqual(BigInteger aReal) |
boolean |
isLessOrEqualToNumber(Number aNumber) |
boolean |
isLessOrEqualToReal(SealedReal<?> aValue) |
boolean |
isLessThanNumber(Number aNumber) |
boolean |
isLessThanReal(SealedReal<?> aValue) |
boolean |
isNotEqual(BigDecimal aReal) |
boolean |
isNotEqual(BigInteger aReal) |
boolean |
isNotEqualToNumber(Number aNumber) |
boolean |
isNotEqualToReal(SealedReal<?> aValue) |
REAL |
mod(BigDecimal aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
REAL |
mod(BigInteger aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
REAL |
modOfNumber(Number aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
REAL |
modOfReal(SealedReal<?> aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
REAL |
or(BigInteger aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
REAL |
orOfNumber(Number aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
REAL |
orOfReal(SealedReal<?> aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
REAL |
powerOfReal(SealedReal<?> aValue)
Set this value to the current value, x, raised to the specified
exponent, n, or xn
|
REAL |
product(BigDecimal aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
REAL |
product(BigInteger aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
REAL |
productOfNumber(Number aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
REAL |
productOfReal(SealedReal<?> aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
REAL |
quotient(BigDecimal aValue)
Set the value of this scalar to the mathematical quotient between
its current value and the specified value
|
REAL |
quotient(BigInteger aValue)
Set the value of this scalar to the mathematical quotient between
its current value and the specified value
|
REAL |
quotientOfNumber(Number aValue)
Set the value of this scalar to the mathematical quotient of its
current value and the specified value
|
REAL |
quotientOfReal(SealedReal<?> aValue)
Set the value of this scalar to the mathematical quotient between
its current value and the specified value
|
REAL |
setNumber(Number aValue)
Set this object to the specified system-supported
Number and
answer this object (facilitates chaining) |
REAL |
setReal(SealedReal<?> aValue)
Set this property to the specified numeric
primitive and answer this object (facilitates chaining) |
REAL |
sum(BigDecimal aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
REAL |
sum(BigInteger aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
REAL |
sumOfNumber(Number aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
REAL |
sumOfReal(SealedReal<?> aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Real<?> |
toReal()
If this real is already a
real number real
then simply call its Replicator.copy() function, otherwise produce a new
real number real |
static BigInteger |
unlimitedIntegerModularInverse(BigInteger p0,
BigInteger p1) |
REAL |
xor(BigInteger aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
REAL |
xorOfNumber(Number aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
REAL |
xorOfReal(SealedReal<?> aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
absoluteValue, and, and, and, and, and, and, andOfScalar, angleWith, angleWithNumber, angleWithScalar, arcCosine, arcSine, arcTangent, assertDomain, assertPrecision, base10Log, boundsCheck, byteMaskAt, byteNotMaskAt, byteValue, ceiling, charMaskAt, charNotMaskAt, charValue, clearByteBitAt, clearCharBitAt, clearDoubleBitAt, clearFloatBitAt, clearIntBitAt, clearLongBitAt, clearShortBitAt, clearUnlimitedDecimalBitAt, clearUnlimitedIntegerBitAt, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToZero, cosine, cubeRoot, degrees, difference, difference, difference, difference, difference, difference, difference, difference, differenceOfScalar, divideByZero, down, exponential, exponentialLessOne, floor, gcd, gcd, gcd, gcd, gcd, gcdOfScalar, getBooleanBitAt, getByteBitAt, getCharBitAt, getDomain, getDoubleBitAt, getFloatBitAt, getIntBitAt, getLongBitAt, getPrecision, getShortBitAt, getUnlimitedDecimalBitAt, getUnlimitedIntegerBitAt, halfDown, halfEven, halfUp, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, hypotenuseWith, hypotenuseWithNumber, hypotenuseWithScalar, indexOutOfBoundsAt, induceScalarSize, intGCD, intMaskAt, intModularInverse, intModularQuotient, intNotMaskAt, intValue, invalidate, isAlphabetic, isBmpCodePoint, isConfigurable, isCountable, isDigit, isElastic, isEmpty, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToScalar, isExpandable, isFalse, isFinite, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToScalar, isGreaterThanScalar, isHighSurrogate, isIdentifierIgnorable, isIdeographic, isImaginary, isISOControl, isJavaIdentifierPart, isJavaIdentifierStart, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToScalar, isLessThanScalar, isLetter, isLetterOrDigit, isLowerCase, isLowSurrogate, isMirrored, isMutable, isNegativeFinite, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToScalar, isOrdered, isPositiveFinite, isReducible, isSupplementaryCodePoint, isSurrogate, isTitleCase, isTrue, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUnique, isUpperCase, isValid, isValidCodePoint, isWhitespace, longGCD, longMaskAt, longModularInverse, longModularQuotient, longNotMaskAt, longSize, longValue, milliseconds, mod, mod, mod, mod, mod, mod, mod, mod, modOfScalar, nanoseconds, naturalLog, naturalLogPlusOne, or, or, or, or, or, or, orOfScalar, power, power, powerOfNumber, powerOfScalar, product, product, product, product, product, product, product, product, productOfScalar, promoteTo, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotientOfScalar, radians, random, setByteBitAt, setCharBitAt, setDoubleBitAt, setE, setEnumeration, setFalse, setFloatBitAt, setIntBitAt, setLongBitAt, setNegativeInfinity, setPi, setPositiveInfinity, setScalar, setShortBitAt, setTrue, setUnity, setUnlimitedDecimalBitAt, setUnlimitedIntegerBitAt, setZero, shiftRightExtendZero, shortMaskAt, shortNotMaskAt, shortValue, signum, sine, size, squareRoot, sum, sum, sum, sum, sum, sum, sum, sum, sumOfScalar, tangent, toBoolean, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toByteArray, toCharacter, toCodePoint, toEnumeration, toScalar, toUnlimitedInteger, unlimitedIntegerMaskAt, unlimitedIntegerNotMaskAt, up, xor, xor, xor, xor, xor, xor, xorOfScalar
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
inducePostDecrement, inducePostIncrement, induceRealValue
inducePostDecrement, inducePostIncrement, induceScalarValue
compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToZero, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToScalar, isFalse, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToScalar, isGreaterThanScalar, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToScalar, isLessThanScalar, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToScalar, isTrue, toBoolean, toCharacter, toCodePoint, toEnumeration, toNumber
getConcurrency, hashCode, toString
isFinite, isImaginary, isInfinity, isInvalid, isMaximum, isMinimum, isModulo, isNegative, isNegativeFinite, isNegativeInfinity, isPositive, isPositiveFinite, isPositiveInfinity, isReal, isUnity, isValid, isZero, signum
isAlphabetic, isBmpCodePoint, isDigit, isHighSurrogate, isIdentifierIgnorable, isIdeographic, isISOControl, isJavaIdentifierPart, isJavaIdentifierStart, isLetter, isLetterOrDigit, isLowerCase, isLowSurrogate, isMirrored, isSupplementaryCodePoint, isSurrogate, isTitleCase, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUpperCase, isValidCodePoint, isWhitespace
booleanValue
byteValue
charValue
doubleValue
floatValue
intValue
longValue
shortValue
induceRealMaximum, induceRealMinimum
getPrecision, induceScalarMaximum, induceScalarMinimum
induceScalarSize
getDomain, getStructureStrategy, longSize, size
isConfigurable, isCountable, isElastic, isEmpty, isExpandable, isOrdered, isReducible, isUnique
copyUsing, copyUsing, copyUsingReal
copyUsing, copyUsing, copyUsing, copyUsing, copyUsing, copyUsing, copyUsing, copyUsing, copyUsingScalar, toScalar
copy
absoluteValue, and, and, and, and, and, and, andOfScalar, angleWith, angleWithNumber, angleWithScalar, arcCosine, arcSine, arcTangent, base10Log, ceiling, cosine, cube, cubeRoot, decrement, degrees, difference, difference, difference, difference, difference, difference, difference, difference, differenceOfScalar, down, exponential, exponentialLessOne, floor, gcd, gcd, gcd, gcd, gcd, gcdOfScalar, halfDown, halfEven, halfUp, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, hypotenuseWith, hypotenuseWithNumber, hypotenuseWithScalar, increment, invalidate, inverse, milliseconds, mod, mod, mod, mod, mod, mod, mod, mod, modOfScalar, nanoseconds, naturalLog, naturalLogPlusOne, negate, not, or, or, or, or, or, or, orOfScalar, power, power, powerOfNumber, powerOfScalar, product, product, product, product, product, product, product, product, productOfScalar, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotientOfScalar, radians, random, round, setE, setEnumeration, setMaximum, setMinimum, setNegativeInfinity, setPi, setPositiveInfinity, setScalar, setUnity, setZero, shiftLeft, shiftRight, shiftRightExtendZero, sine, square, squareRoot, sum, sum, sum, sum, sum, sum, sum, sum, sumOfScalar, tangent, up, xor, xor, xor, xor, xor, xor, xorOfScalar
booleanPostDecrement, booleanPostIncrement, setFalse, setScalar, setTrue
bytePostDecrement, bytePostIncrement, setScalar
charPostDecrement, charPostIncrement, setScalar
doublePostDecrement, doublePostIncrement, setScalar
floatPostDecrement, floatPostIncrement, setScalar
intPostDecrement, intPostIncrement, setScalar
longPostDecrement, longPostIncrement, setScalar
setScalar, shortPostDecrement, shortPostIncrement
assertPrecision, promoteTo
assertDomain, clear, clearContents
toUnlimitedInteger
setReal, unlimitedIntegerPostDecrement, unlimitedIntegerPostIncrement
toUnlimitedDecimal
setReal, unlimitedDecimalPostDecrement, unlimitedDecimalPostIncrement
public AbstractReal()
public AbstractReal(Domain aDomain, NumericPrecision aPrecision)
public AbstractReal(NumericPrecision aPrecision)
public REAL and(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
and
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an integral boolean vectorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL andOfNumber(Number aNumber) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
andOfNumber
in interface MutableScalar<REAL extends Real<REAL>>
andOfNumber
in class AbstractScalar<REAL extends Real<REAL>>
aNumber
- an integral boolean vectorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL andOfReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
andOfReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an integral boolean vectorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL angleWithReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
angleWithReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a y coordinate valueUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectMath.atan2(double, double)
public int compareToNumber(Number aValue)
SealedScalar
compareToNumber
in interface SealedScalar<REAL extends Real<REAL>>
compareToNumber
in class AbstractScalar<REAL extends Real<REAL>>
aValue
- an object to be compared toComparable.compareTo(Object)
public int compareToReal(BigDecimal aReal)
SealedReal
compareToReal
in interface SealedReal<REAL extends Real<REAL>>
aReal
- an object to be compared toComparable.compareTo(Object)
public int compareToReal(BigInteger aReal)
SealedReal
compareToReal
in interface SealedReal<REAL extends Real<REAL>>
aReal
- an object to be compared toComparable.compareTo(Object)
public int compareToReal(SealedReal<?> aValue)
SealedReal
compareToReal
in interface SealedReal<REAL extends Real<REAL>>
aValue
- an object to be compared toComparable.compareTo(Object)
public REAL difference(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
difference
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a subtrahendUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL difference(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
difference
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a subtrahendUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL differenceOfNumber(Number aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
differenceOfNumber
in interface MutableScalar<REAL extends Real<REAL>>
differenceOfNumber
in class AbstractScalar<REAL extends Real<REAL>>
aValue
- a subtrahendUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL differenceOfReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
differenceOfReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a subtrahendUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic boolean equals(Object anObject)
equals
in interface SealedKernel
equals
in class AbstractScalar<REAL extends Real<REAL>>
public REAL gcd(BigInteger aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableReal
gcd
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a valueUnsupportedOperationException
- if this object's value cannot be changedArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException
- if the new value was incommensurate with this object's
specificationpublic REAL gcdOfNumber(Number aNumber) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
gcdOfNumber
in interface MutableScalar<REAL extends Real<REAL>>
gcdOfNumber
in class AbstractScalar<REAL extends Real<REAL>>
UnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final REAL gcdOfReal(Real<?> aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableReal
gcdOfReal
in interface MutableReal<REAL extends Real<REAL>>
UnsupportedOperationException
- if this object's value cannot be changedArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException
- if the new value was incommensurate with this object's
specificationpublic final REAL hypotenuseWithReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
hypotenuseWithReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a y valueUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectMath.hypot(double, double)
public <R extends Real<?>> R induceRealSize(R aTarget) throws NullPointerException, NoSuchElementException, UnsupportedOperationException, IllegalStateException
SealedRealBag
scalar
with the element count in this
structureinduceRealSize
in interface SealedRealBag
R
- the target typeaTarget
- the target to updateNullPointerException
- a null
value was provided when none was expectedNoSuchElementException
- an expected parameter was not found in the parameter sourceUnsupportedOperationException
- this target cannot be changedIllegalStateException
- this target cannot be changed at this timepublic boolean isEqual(BigDecimal aReal)
isEqual
in interface SealedReal<REAL extends Real<REAL>>
public boolean isEqual(BigInteger aReal)
isEqual
in interface SealedReal<REAL extends Real<REAL>>
public boolean isEqualToNumber(Number aNumber)
isEqualToNumber
in interface SealedScalar<REAL extends Real<REAL>>
isEqualToNumber
in class AbstractScalar<REAL extends Real<REAL>>
public boolean isEqualToReal(SealedReal<?> aValue)
isEqualToReal
in interface SealedReal<REAL extends Real<REAL>>
public boolean isGreater(BigDecimal aReal)
isGreater
in interface SealedReal<REAL extends Real<REAL>>
public boolean isGreater(BigInteger aReal)
isGreater
in interface SealedReal<REAL extends Real<REAL>>
public boolean isGreaterOrEqual(BigDecimal aReal)
isGreaterOrEqual
in interface SealedReal<REAL extends Real<REAL>>
public boolean isGreaterOrEqual(BigInteger aReal)
isGreaterOrEqual
in interface SealedReal<REAL extends Real<REAL>>
public boolean isGreaterOrEqualToNumber(Number aNumber)
isGreaterOrEqualToNumber
in interface SealedScalar<REAL extends Real<REAL>>
isGreaterOrEqualToNumber
in class AbstractScalar<REAL extends Real<REAL>>
public boolean isGreaterOrEqualToReal(SealedReal<?> aValue)
isGreaterOrEqualToReal
in interface SealedReal<REAL extends Real<REAL>>
public boolean isGreaterThanNumber(Number aNumber)
isGreaterThanNumber
in interface SealedScalar<REAL extends Real<REAL>>
isGreaterThanNumber
in class AbstractScalar<REAL extends Real<REAL>>
public boolean isGreaterThanReal(SealedReal<?> aValue)
isGreaterThanReal
in interface SealedReal<REAL extends Real<REAL>>
public boolean isLess(BigDecimal aReal)
isLess
in interface SealedReal<REAL extends Real<REAL>>
public boolean isLess(BigInteger aReal)
isLess
in interface SealedReal<REAL extends Real<REAL>>
public boolean isLessOrEqual(BigDecimal aReal)
isLessOrEqual
in interface SealedReal<REAL extends Real<REAL>>
public boolean isLessOrEqual(BigInteger aReal)
isLessOrEqual
in interface SealedReal<REAL extends Real<REAL>>
public boolean isLessOrEqualToNumber(Number aNumber)
isLessOrEqualToNumber
in interface SealedScalar<REAL extends Real<REAL>>
isLessOrEqualToNumber
in class AbstractScalar<REAL extends Real<REAL>>
public boolean isLessOrEqualToReal(SealedReal<?> aValue)
isLessOrEqualToReal
in interface SealedReal<REAL extends Real<REAL>>
public boolean isLessThanNumber(Number aNumber)
isLessThanNumber
in interface SealedScalar<REAL extends Real<REAL>>
isLessThanNumber
in class AbstractScalar<REAL extends Real<REAL>>
public boolean isLessThanReal(SealedReal<?> aValue)
isLessThanReal
in interface SealedReal<REAL extends Real<REAL>>
public boolean isNotEqual(BigDecimal aReal)
isNotEqual
in interface SealedReal<REAL extends Real<REAL>>
public boolean isNotEqual(BigInteger aReal)
isNotEqual
in interface SealedReal<REAL extends Real<REAL>>
public boolean isNotEqualToNumber(Number aNumber)
isNotEqualToNumber
in interface SealedScalar<REAL extends Real<REAL>>
isNotEqualToNumber
in class AbstractScalar<REAL extends Real<REAL>>
public boolean isNotEqualToReal(SealedReal<?> aValue)
isNotEqualToReal
in interface SealedReal<REAL extends Real<REAL>>
public REAL mod(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
mod
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a modulusUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL mod(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
mod
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a modulusUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL modOfNumber(Number aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
modOfNumber
in interface MutableScalar<REAL extends Real<REAL>>
modOfNumber
in class AbstractScalar<REAL extends Real<REAL>>
aValue
- a modulusUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL modOfReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
modOfReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a modulusUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL or(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
or
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an integral boolean vectorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL orOfNumber(Number aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
orOfNumber
in interface MutableScalar<REAL extends Real<REAL>>
orOfNumber
in class AbstractScalar<REAL extends Real<REAL>>
aValue
- an integral boolean vectorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL orOfReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
orOfReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an integral boolean vectorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL powerOfReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
powerOfReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an exponentUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL product(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
product
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a multiplicandUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL product(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
product
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a multiplicandUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL productOfNumber(Number aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
productOfNumber
in interface MutableScalar<REAL extends Real<REAL>>
productOfNumber
in class AbstractScalar<REAL extends Real<REAL>>
aValue
- a multiplicandUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL productOfReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
productOfReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a multiplicandUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL quotient(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
quotient
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a divisorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL quotient(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
quotient
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a divisorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL quotientOfNumber(Number aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
quotientOfNumber
in interface MutableScalar<REAL extends Real<REAL>>
quotientOfNumber
in class AbstractScalar<REAL extends Real<REAL>>
aValue
- a divisorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL quotientOfReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
quotientOfReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a divisorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL setNumber(Number aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableScalar
Number
and
answer this object (facilitates chaining)setNumber
in interface MutableScalar<REAL extends Real<REAL>>
setNumber
in class AbstractScalar<REAL extends Real<REAL>>
aValue
- a system-supported Number
UnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the specified value was incommensurate with this object's
specificationArithmeticException
- the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException
- a null
value was provided though this object does not
accept null
valuespublic REAL setReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableReal
primitive
and answer this object (facilitates chaining)setReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- a numeric primitive
UnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the specified value was incommensurate with this object's
specificationArithmeticException
- the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException
- a null
value was provided though this object does not
accept null
valuespublic REAL sum(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
sum
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an addendUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL sum(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
sum
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an addendUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL sumOfNumber(Number aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sumOfNumber
in interface MutableScalar<REAL extends Real<REAL>>
sumOfNumber
in class AbstractScalar<REAL extends Real<REAL>>
aValue
- an addendUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL sumOfReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
sumOfReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an addendUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic Real<?> toReal()
RealReplicator
real
number real
then simply call its Replicator.copy()
function, otherwise produce a new
real number realtoReal
in interface RealReplicator<REAL extends Real<REAL>>
public REAL xor(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
xor
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an integral boolean vectorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL xorOfNumber(Number aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
xorOfNumber
in interface MutableScalar<REAL extends Real<REAL>>
xorOfNumber
in class AbstractScalar<REAL extends Real<REAL>>
aValue
- an integral boolean vectorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic REAL xorOfReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
xorOfReal
in interface MutableReal<REAL extends Real<REAL>>
aValue
- an integral boolean vectorUnsupportedOperationException
- if this object's value cannot be changedIllegalArgumentException
- if the new value was incommensurate with this object's
specificationArithmeticException
- the new numeric value was incompatible with with algebraic
interpretation of this objectpublic static final BigInteger unlimitedIntegerModularInverse(BigInteger p0, BigInteger p1)
Copyright © 2006-2012 Ware-Squared Software Development. All Rights Reserved.