public final class Supernumber extends java.lang.Object implements Ring.Member
Constructor and Description |
---|
Supernumber()
Constructs a supernumber.
|
Modifier and Type | Method and Description |
---|---|
AbelianGroup.Member |
add(AbelianGroup.Member z)
Returns the addition of this number and another.
|
Supernumber |
add(Supernumber z)
Returns the addition of this supernumber and another.
|
int |
dimension()
Returns the dimension.
|
Complex |
getBody()
Returns the body (rank 0) of this supernumber.
|
Complex |
getSoul1(int i)
Returns the a-number soul (rank 1) of this supernumber.
|
Complex |
getSoul2(int i)
Returns the c-number soul (rank 2) of this supernumber.
|
Complex |
getSoul3(int i)
Returns the a-number soul (rank 3) of this supernumber.
|
Complex |
getSoul4()
Returns the c-number soul (rank 4) of this supernumber.
|
Ring.Member |
multiply(Ring.Member z)
Returns the multiplication of this number and another.
|
Supernumber |
multiply(Supernumber z)
Returns the multiplication of this supernumber and another.
|
AbelianGroup.Member |
negate()
Returns the negative of this number.
|
void |
setBody(Complex b)
Sets the body (rank 0) of this supernumber.
|
void |
setSoul1(int i,
Complex s)
Sets the a-number soul (rank 1) of this supernumber.
|
void |
setSoul2(int i,
Complex s)
Sets the c-number soul (rank 2) of this supernumber.
|
void |
setSoul3(int i,
Complex s)
Sets the a-number soul (rank 3) of this supernumber.
|
void |
setSoul4(Complex 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.
|
Supernumber |
subtract(Supernumber z)
Returns the subtraction of this supernumber and another.
|
java.lang.String |
toString()
Returns a string representing the value of this supernumber.
|
public java.lang.String toString()
toString
in class java.lang.Object
public Complex getBody()
public void setBody(Complex b)
public Complex getSoul1(int i)
public void setSoul1(int i, Complex s)
public Complex getSoul2(int i)
public void setSoul2(int i, Complex s)
public Complex getSoul3(int i)
public void setSoul3(int i, Complex s)
public Complex getSoul4()
public void setSoul4(Complex s)
public int dimension()
public AbelianGroup.Member negate()
negate
in interface AbelianGroup.Member
public AbelianGroup.Member add(AbelianGroup.Member z)
add
in interface AbelianGroup.Member
z
- a group memberpublic Supernumber add(Supernumber z)
z
- a supernumberpublic AbelianGroup.Member subtract(AbelianGroup.Member z)
subtract
in interface AbelianGroup.Member
z
- a group memberpublic Supernumber subtract(Supernumber z)
z
- a supernumberpublic Ring.Member multiply(Ring.Member z)
multiply
in interface Ring.Member
z
- a ring memberpublic Supernumber multiply(Supernumber z)
z
- a supernumber