|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
org.jscience.mathematics.algebraic.numbers.ExactSupernumber
public final class ExactSupernumber
The ExactSupernumber class encapsulates supernumbers.
They are actually implemented as elements of the Grassmann algebra
4
rather than the full 
.
| Field Summary | |
|---|---|
static java.lang.Class |
TYPE
|
| Constructor Summary | |
|---|---|
ExactSupernumber()
Constructs a supernumber. |
|
ExactSupernumber(ExactComplex body,
ExactComplex[] soul1,
ExactComplex[] soul2,
ExactComplex[] soul3,
ExactComplex soul4)
Constructs a supernumber. |
|
ExactSupernumber(ExactSupernumber s)
Constructs a supernumber. |
|
ExactSupernumber(Supernumber s)
Constructs a supernumber. |
|
| Method Summary | |
|---|---|
AbelianGroup.Member |
add(AbelianGroup.Member z)
Returns the addition of this number and another. |
ExactSupernumber |
add(ExactSupernumber z)
Returns the addition of this supernumber and another. |
java.lang.Object |
clone()
|
int |
dimension()
Returns the dimension. |
double |
doubleValue()
|
float |
floatValue()
|
ExactComplex |
getBody()
Returns the body (rank 0) of this supernumber. |
ExactComplex |
getSoul1(int i)
Returns the a-number soul (rank 1) of this supernumber. |
ExactComplex |
getSoul2(int i)
Returns the c-number soul (rank 2) of this supernumber. |
ExactComplex |
getSoul3(int i)
Returns the a-number soul (rank 3) of this supernumber. |
ExactComplex |
getSoul4()
Returns the c-number soul (rank 4) of this supernumber. |
int |
intValue()
|
long |
longValue()
|
ExactSupernumber |
multiply(ExactSupernumber z)
Returns the multiplication of this supernumber and another. |
Ring.Member |
multiply(Ring.Member z)
Returns the multiplication of this number and another. |
AbelianGroup.Member |
negate()
Returns the negative of this number. |
void |
setBody(ExactComplex b)
Sets the body (rank 0) of this supernumber. |
void |
setSoul1(int i,
ExactComplex s)
Sets the a-number soul (rank 1) of this supernumber. i should be from 0 to 3. |
void |
setSoul2(int i,
ExactComplex s)
Sets the c-number soul (rank 2) of this supernumber. i should be from 0 to 5. |
void |
setSoul3(int i,
ExactComplex s)
Sets the a-number soul (rank 3) of this supernumber. i should be from 0 to 3. |
void |
setSoul4(ExactComplex s)
Sets the c-number soul (rank 4) of this supernumber. |
AbelianGroup.Member |
subtract(AbelianGroup.Member z)
Returns the subtraction of this number and another. |
ExactSupernumber |
subtract(ExactSupernumber z)
Returns the subtraction of this supernumber and another. |
java.lang.String |
toString()
Returns a string representing the value of this supernumber. |
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Class TYPE
| Constructor Detail |
|---|
public ExactSupernumber()
public ExactSupernumber(ExactSupernumber s)
public ExactSupernumber(Supernumber s)
public ExactSupernumber(ExactComplex body,
ExactComplex[] soul1,
ExactComplex[] soul2,
ExactComplex[] soul3,
ExactComplex soul4)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic ExactComplex getBody()
public void setBody(ExactComplex b)
public ExactComplex getSoul1(int i)
public void setSoul1(int i,
ExactComplex s)
public ExactComplex getSoul2(int i)
public void setSoul2(int i,
ExactComplex s)
public ExactComplex getSoul3(int i)
public void setSoul3(int i,
ExactComplex s)
public ExactComplex getSoul4()
public void setSoul4(ExactComplex s)
public int dimension()
public int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic AbelianGroup.Member negate()
negate in interface AbelianGroup.Memberpublic AbelianGroup.Member add(AbelianGroup.Member z)
add in interface AbelianGroup.Memberz - a group member
public ExactSupernumber add(ExactSupernumber z)
z - a supernumberpublic AbelianGroup.Member subtract(AbelianGroup.Member z)
subtract in interface AbelianGroup.Memberz - a group member
public ExactSupernumber subtract(ExactSupernumber z)
z - a supernumberpublic Ring.Member multiply(Ring.Member z)
multiply in interface Ring.Memberz - a ring member
public ExactSupernumber multiply(ExactSupernumber z)
z - a supernumberpublic java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||