jhypercomplex.numbers.cayley_dickson_algebras
Class Complex

java.lang.Object
  extended by jhypercomplex.numbers.Hypernumber
      extended by jhypercomplex.numbers.cayley_dickson_algebras.CayleyDicksonAlgebra
          extended by jhypercomplex.numbers.cayley_dickson_algebras.Complex
All Implemented Interfaces:
CommonMethods

public class Complex
extends CayleyDicksonAlgebra


Field Summary
 
Fields inherited from class jhypercomplex.numbers.cayley_dickson_algebras.CayleyDicksonAlgebra
_2_N_ON, CLASSICAL, COMPLEX, OCTONION, QUATERNION, SEDENION, TRIGINTADUONION, TWISTED
 
Fields inherited from class jhypercomplex.numbers.Hypernumber
ARG_NUM, CIRCULAR, COMP_NUM, components, HYPERBOLIC, ZERO_PRECISSION
 
Constructor Summary
Complex()
           
Complex(Complex c)
           
Complex(java.lang.String components)
           
 
Method Summary
 Complex add(Complex c)
           
 Complex conjugate()
           
static void doCayleyDicksonProcess(java.lang.String[] signature, java.lang.String[] vector_basis)
           
 Complex getAntiCommutatorWith(Complex c)
           
 java.lang.String[] getBasis()
           
 Complex getClone()
           
 Complex getCommutatorWith(Complex c)
           
 Complex getGrade(int grade)
           
static java.util.HashMap<java.lang.String,java.lang.Integer> getGrades()
           
static java.lang.String[][] getMultiplicationTable()
           
static java.lang.String getMultTableAsHtml()
           
 Hypernumber getNewInstance()
           
static java.lang.String[][] getNormedMultiplicationTable()
           
static java.lang.String getNormedMultiplicationtableAsHtml()
           
 int getNumberOfComponents()
           
 int getNumberOfGrades()
           
static Complex getProduct(Complex c1, Complex c2)
           
 int getType()
           
 Complex multiplyWithScalar(java.lang.String scalar)
          Multiplication with a scalar.
 Complex negate()
          Negates the hypernumber: h --> -h.
 Complex rightMultiplyWith(Complex c)
           
static void setDefaultTable()
           
static void setMultiplicationTable(java.lang.String[][] mult_table)
           
 
Methods inherited from class jhypercomplex.numbers.cayley_dickson_algebras.CayleyDicksonAlgebra
doCayleyDicksonDoubling, doCayleyDicksonDoubling, getLoopMultiplicationTable, isCayleyDicksonAlgebra, isLoop
 
Methods inherited from class jhypercomplex.numbers.Hypernumber
add, add, applyLeibnizRule, asString, asString, calculateBCHWith, collectTerms, compressComponents, dual, getAlternator1, getAlternator2, getAntiAssociator, getAntiCommutator, getAntiCommutatorWith, getAssociationType, getAssociationType, getAssociationTypeAsString, getAssociationTypeAsString, getAssociationTypeCommutator, getAssociationTypeCommutator, getAssociationTypeCommutatorAsString, getAssociationTypeCommutatorAsString, getAssociator, getBasisElementsAsString, getCommuAssociator, getCommutator, getCommutator, getCommutatorJacobian, getCommutatorSaglian, getCommutatorWith, getCommutatorWith, getComponent, getComponents, getComponentsAsString, getComponentsAsString, getComponentsOfGrade, getConjugate, getDiagonalProducts, getDifference, getDual, getExpressionAsList, getFirstHetztelPeresian, getFormattedMultTable, getGradedInnerProduct, getHermitianConjugate, getImaginaryPart, getInstance, getIntersection, getJacobian, getJordanAssociator, getLeftCovariantDerivative, getMultiplicativeOrder, getMultiplicativeOrder, getMultTableDiagonal, getNegated, getNextBitmap, getNormedMultiplicationTable, getNormSquared, getNormSquaredAsValue, getNumberOfClosedElements, getNumberOfClosedPairs, getNumberOfComponents, getNumberOfNonzeroComponents, getNumericalInverse, getOuterProduct, getProduct, getProductWithScalar, getPseudoScalarComponent, getRandomClosedPair, getRandomNonClosedPair, getScalarComponent, getScalarProduct, getSecondHetztelPeresian, getSignature, getSubalgebras, getSubalgebrasAsString, getSubalgebrasSignatures, getSum, getTrace, getTraceRespDeterminant, getVectorDerivative, getVectorProduct, isAutomorphism, isClosedAlgebra, isCommutative, isComponentZero, isEqual, isLinearlyDependent, isNumerical, isNumericalityDetected, isOrthogonal, isOrthogonalTo, isZero, resetComponents, rightMultiplyWith, rightMultiplyWith, setBasis, setComponent, setComponents, setComponents, setNumerical, setNumerical, setPseudoScalarComponent, setRandomComponents, setRandomComponents, setRandomComponents, setRandomComponentsAll, setScalarComponent, simplifyNumericalFactors, simplifyNumericalSummands, simplifyPlusMinus, square, subtract
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Complex

public Complex()

Complex

public Complex(java.lang.String components)
        throws java.lang.Exception
Throws:
java.lang.Exception

Complex

public Complex(Complex c)
Method Detail

rightMultiplyWith

public Complex rightMultiplyWith(Complex c)
                          throws java.lang.Exception
Throws:
java.lang.Exception

conjugate

public Complex conjugate()
                  throws java.lang.Exception
Overrides:
conjugate in class Hypernumber
Returns:
The conjugate of the hypernumber, i.e. reverses the signs of the imaginary hypercomplex components.
Throws:
java.lang.Exception

add

public Complex add(Complex c)

multiplyWithScalar

public Complex multiplyWithScalar(java.lang.String scalar)
                           throws java.lang.Exception
Description copied from class: Hypernumber
Multiplication with a scalar.

Overrides:
multiplyWithScalar in class Hypernumber
Parameters:
scalar - Scalar.
Returns:
Hypernumber multiplied with a scalar.
Throws:
java.lang.Exception

negate

public Complex negate()
               throws java.lang.Exception
Description copied from class: Hypernumber
Negates the hypernumber: h --> -h.

Overrides:
negate in class Hypernumber
Returns:
Negated hypernumber h.
Throws:
java.lang.Exception

getAntiCommutatorWith

public Complex getAntiCommutatorWith(Complex c)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getCommutatorWith

public Complex getCommutatorWith(Complex c)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getClone

public Complex getClone()

getNewInstance

public Hypernumber getNewInstance()

doCayleyDicksonProcess

public static void doCayleyDicksonProcess(java.lang.String[] signature,
                                          java.lang.String[] vector_basis)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getProduct

public static Complex getProduct(Complex c1,
                                 Complex c2)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getNumberOfComponents

public int getNumberOfComponents()

getBasis

public java.lang.String[] getBasis()
Specified by:
getBasis in class Hypernumber

getType

public int getType()

getMultiplicationTable

public static java.lang.String[][] getMultiplicationTable()

setMultiplicationTable

public static void setMultiplicationTable(java.lang.String[][] mult_table)

setDefaultTable

public static void setDefaultTable()

getMultTableAsHtml

public static java.lang.String getMultTableAsHtml()

getNormedMultiplicationTable

public static java.lang.String[][] getNormedMultiplicationTable()

getNormedMultiplicationtableAsHtml

public static java.lang.String getNormedMultiplicationtableAsHtml()

getNumberOfGrades

public int getNumberOfGrades()

getGrades

public static java.util.HashMap<java.lang.String,java.lang.Integer> getGrades()
Returns:
Array with the grades.

getGrade

public Complex getGrade(int grade)
                 throws java.lang.Exception
Throws:
java.lang.Exception