|
MathWorx | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Group
Defined in Group.js
Requires:
Field Summary | |
Boolean |
hasAssociativity
Whether or not the group is associative |
Boolean |
hasClosure
Whether or not the group has closure |
Boolean |
hasIdentity
Whether or not the group has an identity element |
Boolean |
hasInverse
Whether or not the group satisfies the inverse axiom |
Function |
operation
Either a function, or a string 'addition' or 'multiplication' |
Object |
set
|
Constructor Summary | |
Group(<Array> elements, <Function> operator)
Generator function for a new group (mathematical). |
Method Summary | |
Object
|
getIdentity()
Gets the identity element if it exists. |
Boolean
|
isGroup()
Tests to see whether the group satisfies all four axioms in the definition of a formal group. |
Object
|
operand(<Object> el1, <Object> el2)
The actual binary operation that is carried out for the group. |
void
|
setIdentity()
Sets the identity element if it exists and hasIdentity to true.* |
Boolean
|
testAssociativity()
Tests whether or not group is associative. |
Boolean
|
testClosure()
Determines if the group does or does not have closure and sets the binary hasClosure. |
Boolean
|
testCycle(<Array> array)
Tests if a given array (in this case, a permutation) is a cycle of the set. |
Boolean
|
testIdentity()
Tells whether or not group has identity element. |
Boolean
|
testInverse()
Tests for the existence of an inverse element for every element. |
Field Detail |
Boolean hasAssociativity
Boolean hasClosure
Boolean hasIdentity
Boolean hasInverse
Function operation
Object set
Constructor Detail |
Group(<Array> elements, <Function> operator)
elements
- the set of elements that defines the set in the group
operator
- if a function, must take two parameters (elements of the set); if a string: 'addition' or 'multiplication'
Method Detail |
Object getIdentity()
Boolean isGroup()
Object operand(<Object> el1, <Object> el2)
el1
- - the first element
el2
- - the second element
void setIdentity()
Boolean testAssociativity()
Boolean testClosure()
Boolean testCycle(<Array> array)
array
- - the array to test
Boolean testIdentity()
Boolean testInverse()
|
MathWorx | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |