|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Integer
Representation of an integer number k∈Z.
Integer numbers are a subgroup of Q for '+', it is embedded in Q for the field operation '*'. Integers are the group of differences of N.
On the importance of Quotient<Integer>
:
all cyclic groups are Z/nZ with n∈Z.
All finitely generated Abelian groups are direct sums of cyclic groups, hence
Vector<Quotient<Integer>>
ValueFactory.valueOf(int)
,
ValueFactory.valueOf(long)
,
ValueFactory.valueOf(short)
,
ValueFactory.valueOf(byte)
,
ValueFactory.valueOf(java.math.BigInteger)
Field Summary | |
---|---|
static Predicate |
hasType
Checks whether the given number is in the set of integers and not a subset. |
static Predicate |
isa
Checks whether the given number is in the set of integers. |
Fields inherited from interface orbital.math.Arithmetic |
---|
numerical |
Method Summary | |
---|---|
Integer |
add(Integer b)
|
byte |
byteValue()
Returns the value of the specified integer as a byte . |
int |
intValue()
Returns the value of the specified integer as a int . |
long |
longValue()
Returns the value of the specified integer as a long . |
Integer |
multiply(Integer b)
|
Rational |
power(Integer b)
Return ab. |
short |
shortValue()
Returns the value of the specified integer as a short . |
Integer |
subtract(Integer b)
|
Methods inherited from interface orbital.math.Rational |
---|
add, denominator, divide, multiply, numerator, power, representative, subtract |
Methods inherited from interface orbital.math.Real |
---|
add, compareTo, divide, doubleValue, floatValue, multiply, power, subtract |
Methods inherited from interface orbital.math.Complex |
---|
add, arg, conjugate, divide, equals, hashCode, im, isInfinite, isNaN, multiply, norm, power, re, subtract |
Methods inherited from interface orbital.math.Arithmetic |
---|
add, divide, equals, inverse, isOne, isZero, minus, multiply, one, power, scale, subtract, toString, valueFactory, zero |
Methods inherited from interface orbital.math.Euclidean |
---|
degree, modulo, quotient |
Field Detail |
---|
static final Predicate isa
static final Predicate hasType
Method Detail |
---|
byte byteValue()
byte
. This may involve rounding or truncation.
Similar to the standard narrowing primitive conversion as defined in
The Java Language Specification:
if this integer is too big to fit in an int, only the low-order bits are returned.
byte
.short shortValue()
short
. This may involve rounding or truncation.
Similar to the standard narrowing primitive conversion as defined in
The Java Language Specification:
if this integer is too big to fit in an int, only the low-order bits are returned.
short
.int intValue()
int
. This may involve rounding or truncation.
Similar to the standard narrowing primitive conversion as defined in
The Java Language Specification:
if this integer is too big to fit in an int, only the low-order bits are returned.
int
.long longValue()
long
. This may involve rounding or truncation.
Similar to the standard narrowing primitive conversion as defined in
The Java Language Specification:
if this integer is too big to fit in an int, only the low-order bits are returned.
long
.Integer add(Integer b)
Integer subtract(Integer b)
Integer multiply(Integer b)
Rational power(Integer b)
power
in interface Rational
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |