jhypercomplex.algebra
Class Expressions

java.lang.Object
  extended by jhypercomplex.algebra.Expressions

public abstract class Expressions
extends java.lang.Object


Constructor Summary
Expressions()
           
 
Method Summary
static java.lang.String expandNestedCommuatorsAndAssociators(java.lang.String expression)
          Example: [R,[A,B,[D,E]]] Step 1: [R,[A,B,(DE-ED)]] Step 2: [R,((AB)(DE-ED) - A(B(DE-ED)))] Step 3: (R((AB)(DE-ED) - A(B(DE-ED))) - ((AB)(DE-ED) - A(B(DE-ED)))R)
static int getDeepestBracketPosition(java.lang.String expression)
          The depth of the deepest nesting of bracket(s) is determined.
static java.lang.String replaceInnermostObject(int pos, java.lang.String expression)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expressions

public Expressions()
Method Detail

expandNestedCommuatorsAndAssociators

public static java.lang.String expandNestedCommuatorsAndAssociators(java.lang.String expression)
Example: [R,[A,B,[D,E]]] Step 1: [R,[A,B,(DE-ED)]] Step 2: [R,((AB)(DE-ED) - A(B(DE-ED)))] Step 3: (R((AB)(DE-ED) - A(B(DE-ED))) - ((AB)(DE-ED) - A(B(DE-ED)))R)

Parameters:
expression -
Returns:

getDeepestBracketPosition

public static int getDeepestBracketPosition(java.lang.String expression)
The depth of the deepest nesting of bracket(s) is determined.

Parameters:
expression - Expression.
Returns:
Position of 1-st occurence of deepest nesting (counting start from 0).

replaceInnermostObject

public static java.lang.String replaceInnermostObject(int pos,
                                                      java.lang.String expression)