MathWorx

Class Group

Object
   |
   +--Group

class 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

hasAssociativity

Boolean hasAssociativity

hasClosure

Boolean hasClosure

hasIdentity

Boolean hasIdentity

hasInverse

Boolean hasInverse

operation

Function operation

set

Object set

Constructor Detail

Group

Group(<Array> elements, <Function> operator)

Method Detail

getIdentity

Object getIdentity()

isGroup

Boolean isGroup()

operand

Object operand(<Object> el1, <Object> el2)

setIdentity

void setIdentity()

testAssociativity

Boolean testAssociativity()

testClosure

Boolean testClosure()

testCycle

Boolean testCycle(<Array> array)

testIdentity

Boolean testIdentity()

testInverse

Boolean testInverse()

MathWorx

Documentation generated by JSDoc on Mon Aug 11 13:58:31 2008