|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.lsmp.djep.groupJep.groups.Group org.lsmp.djep.groupJep.groups.Quaternions
public class Quaternions
Possibly the Quaternions, completely untested.
Nested Class Summary | |
---|---|
static class |
Quaternions.Quaternion
|
Constructor Summary | |
---|---|
Quaternions()
|
Method Summary | |
---|---|
java.lang.Number |
add(java.lang.Number a,
java.lang.Number b)
Get sum of the numbers |
void |
addStandardConstants(JEP j)
adds the standard constants for this group. |
boolean |
equals(java.lang.Number a,
java.lang.Number b)
whether two numbers are equal |
java.lang.Number |
getInverse(java.lang.Number num)
Get Inverse of a number |
java.lang.Number |
getONE()
Get multiplicative identity i.e. 1. |
java.lang.Number |
getZERO()
Returns the identity element under + |
java.lang.Number |
mul(java.lang.Number a,
java.lang.Number b)
Returns the product of two numbers, a*b |
java.lang.Number |
sub(java.lang.Number a,
java.lang.Number b)
Get the difference of the numbers. |
java.lang.String |
toString()
|
java.lang.Number |
valueOf(java.lang.String s)
returns number given by the string |
Methods inherited from class org.lsmp.djep.groupJep.groups.Group |
---|
addStandardFunctions, getNumberFactory, isConstantPoly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.lsmp.djep.groupJep.GroupI |
---|
addStandardFunctions, getNumberFactory, isConstantPoly |
Constructor Detail |
---|
public Quaternions()
Method Detail |
---|
public java.lang.Number getZERO()
GroupI
getZERO
in interface GroupI
public java.lang.Number getONE()
RingI
getONE
in interface RingI
public java.lang.Number getInverse(java.lang.Number num)
GroupI
getInverse
in interface GroupI
public java.lang.Number add(java.lang.Number a, java.lang.Number b)
GroupI
add
in interface GroupI
public java.lang.Number sub(java.lang.Number a, java.lang.Number b)
GroupI
sub
in interface GroupI
public java.lang.Number mul(java.lang.Number a, java.lang.Number b)
RingI
mul
in interface RingI
public boolean equals(java.lang.Number a, java.lang.Number b)
GroupI
equals
in interface GroupI
public java.lang.Number valueOf(java.lang.String s)
GroupI
valueOf
in interface GroupI
public void addStandardConstants(JEP j)
Group
addStandardConstants
in interface GroupI
addStandardConstants
in class Group
public java.lang.String toString()
toString
in class Group
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |