|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
Number |
add(Number a,
Number b)
Get sum of the numbers |
void |
addStandardConstants(JEP j)
adds the standard constants for this group. |
boolean |
equals(Number a,
Number b)
whether two numbers are equal |
Number |
getInverse(Number num)
Get Inverse of a number |
Number |
getONE()
Get multiplicative identity i.e. |
Number |
getZERO()
Returns the identity element under + |
Number |
mul(Number a,
Number b)
Returns the product of two numbers, a*b |
Number |
sub(Number a,
Number b)
Get the difference of the numbers. |
String |
toString()
|
Number |
valueOf(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 Number getZERO()
GroupI
getZERO in interface GroupIpublic Number getONE()
RingI
getONE in interface RingIpublic Number getInverse(Number num)
GroupI
getInverse in interface GroupI
public Number add(Number a,
Number b)
GroupI
add in interface GroupI
public Number sub(Number a,
Number b)
GroupI
sub in interface GroupI
public Number mul(Number a,
Number b)
RingI
mul in interface RingI
public boolean equals(Number a,
Number b)
GroupI
equals in interface GroupIpublic Number valueOf(String s)
GroupI
valueOf in interface GroupIpublic void addStandardConstants(JEP j)
Group
addStandardConstants in interface GroupIaddStandardConstants in class Grouppublic String toString()
toString in class Group
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||