public class Quaternions extends Group implements RingI
| Modifier and Type | Class and Description |
|---|---|
static class |
Quaternions.Quaternion |
| Constructor and Description |
|---|
Quaternions() |
| Modifier and Type | Method and Description |
|---|---|
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
|
addStandardFunctions, getNumberFactory, isConstantPolyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStandardFunctions, getNumberFactory, isConstantPolypublic Number getZERO()
GroupIpublic Number getONE()
RingIpublic Number getInverse(Number num)
GroupIgetInverse in interface GroupIpublic Number add(Number a, Number b)
GroupIpublic Number sub(Number a, Number b)
GroupIpublic Number mul(Number a, Number b)
RingIpublic boolean equals(Number a, Number b)
GroupIpublic Number valueOf(String s)
GroupIpublic void addStandardConstants(JEP j)
GroupaddStandardConstants in interface GroupIaddStandardConstants in class GroupCopyright © 2018. All rights reserved.