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, isConstantPoly
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStandardFunctions, getNumberFactory, isConstantPoly
public Number getZERO()
GroupI
public Number getONE()
RingI
public Number getInverse(Number num)
GroupI
getInverse
in interface GroupI
public Number add(Number a, Number b)
GroupI
public Number sub(Number a, Number b)
GroupI
public Number mul(Number a, Number b)
RingI
public boolean equals(Number a, Number b)
GroupI
public Number valueOf(String s)
GroupI
public void addStandardConstants(JEP j)
Group
addStandardConstants
in interface GroupI
addStandardConstants
in class Group
Jas4pp 1.5 © Java Analysis Studio for Particle Physics