jhypercomplex.numbers.clifford_algebras
Class SpacetimeAlgebra

java.lang.Object
  extended by jhypercomplex.numbers.Hypernumber
      extended by jhypercomplex.numbers.clifford_algebras.CliffordAlgebra
          extended by jhypercomplex.numbers.clifford_algebras.SpacetimeAlgebra
All Implemented Interfaces:
CommonMethods

public class SpacetimeAlgebra
extends CliffordAlgebra


Field Summary
 
Fields inherited from class jhypercomplex.numbers.clifford_algebras.CliffordAlgebra
dim, grade_nr
 
Fields inherited from class jhypercomplex.numbers.Hypernumber
ARG_NUM, CIRCULAR, COMP_NUM, components, HYPERBOLIC, ZERO_PRECISSION
 
Constructor Summary
SpacetimeAlgebra()
           
SpacetimeAlgebra(SpacetimeAlgebra sta)
           
 
Method Summary
 SpacetimeAlgebra add(Hypernumber h)
           
static SpacetimeAlgebra getAntiCommutator(SpacetimeAlgebra sta1, SpacetimeAlgebra sta2)
           
static SpacetimeAlgebra getAssociator(SpacetimeAlgebra sta1, SpacetimeAlgebra sta2, SpacetimeAlgebra sta3)
           
 java.lang.String[] getBasis()
           
 SpacetimeAlgebra getBlades(java.lang.String blades)
          Projects out a given set of blades.
 Hypernumber getClone()
           
 SpacetimeAlgebra getClone(Hypernumber sta)
           
static SpacetimeAlgebra getCommutator(SpacetimeAlgebra sta1, SpacetimeAlgebra sta2)
           
 SpacetimeAlgebra getEvenGrade(SpacetimeAlgebra sta)
           
 SpacetimeAlgebra getGrade(int grade)
          Projects out a given grade.
 java.lang.String[][] getMultTable()
           
 SpacetimeAlgebra getNewInstance()
           
 int getNumberOfComponents()
           
 int getNumberOfGrades()
           
static SpacetimeAlgebra getProduct(SpacetimeAlgebra sta1, SpacetimeAlgebra sta2)
           
 SpacetimeAlgebra getReverted()
          Reverts a vector.
 java.lang.String[] getTriVectorComponents()
           
 int getType()
           
 java.lang.String[] getVectorComponents()
           
 SpacetimeAlgebra rightMultiplyWith(SpacetimeAlgebra sta)
           
 void setBivectorComponents(java.lang.String vector)
           
 void setBiVectorComponents(java.lang.String bivector)
           
 void setMultiplicationTable(java.lang.String[][] mult_table)
           
 void setTriVectorComponents(java.lang.String trivector)
           
 void setVectorComponents(java.lang.String vector)
           
 
Methods inherited from class jhypercomplex.numbers.clifford_algebras.CliffordAlgebra
compress, getBiVectorComponents, getBladeNumbers, getGrades, getGradesOccuring, getMultTableAsHtml, order, rightMultiplyWith, setBasis, setBiVectorComponentsExclusively, setCliffordComponentsOfGrade, setVectorComponentsExclusively
 
Methods inherited from class jhypercomplex.numbers.Hypernumber
add, applyLeibnizRule, asString, asString, calculateBCHWith, collectTerms, compressComponents, conjugate, 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, multiplyWithScalar, negate, 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
 
Methods inherited from interface jhypercomplex.numbers.CommonMethods
isCayleyDicksonAlgebra
 

Constructor Detail

SpacetimeAlgebra

public SpacetimeAlgebra()

SpacetimeAlgebra

public SpacetimeAlgebra(SpacetimeAlgebra sta)
Method Detail

setVectorComponents

public void setVectorComponents(java.lang.String vector)
                         throws java.lang.Exception
Overrides:
setVectorComponents in class CliffordAlgebra
Throws:
java.lang.Exception

setBiVectorComponents

public void setBiVectorComponents(java.lang.String bivector)
                           throws java.lang.Exception
Overrides:
setBiVectorComponents in class CliffordAlgebra
Throws:
java.lang.Exception

setTriVectorComponents

public void setTriVectorComponents(java.lang.String trivector)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getVectorComponents

public java.lang.String[] getVectorComponents()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

setBivectorComponents

public void setBivectorComponents(java.lang.String vector)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getTriVectorComponents

public java.lang.String[] getTriVectorComponents()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getReverted

public SpacetimeAlgebra getReverted()
Reverts a vector. A reversion R obeys R(A*B) = R(A)*R(B). For the components it means that the grade 2 and grade 3 summands change their sign.

Parameters:
sta - Spacetime algebra to be inverted.
Returns:
Copy of Reverted spacetime multivector.

getGrade

public SpacetimeAlgebra getGrade(int grade)
Projects out a given grade.

Specified by:
getGrade in interface CommonMethods
Overrides:
getGrade in class CliffordAlgebra
Parameters:
grade - Grade.
Returns:
Spacetime algebra multivector of given grade.

add

public SpacetimeAlgebra add(Hypernumber h)
Overrides:
add in class Hypernumber

getBlades

public SpacetimeAlgebra getBlades(java.lang.String blades)
Description copied from class: CliffordAlgebra
Projects out a given set of blades.

Overrides:
getBlades in class CliffordAlgebra
Parameters:
blades - Set of blades. The numbering is from 0 to 15, the numbers are comma separated. E.g. "1,4,6,8". The order is arbitrary.
Returns:
De Sitter multivector containing the blades specified.

getEvenGrade

public SpacetimeAlgebra getEvenGrade(SpacetimeAlgebra sta)

getProduct

public static SpacetimeAlgebra getProduct(SpacetimeAlgebra sta1,
                                          SpacetimeAlgebra sta2)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

rightMultiplyWith

public SpacetimeAlgebra rightMultiplyWith(SpacetimeAlgebra sta)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getCommutator

public static SpacetimeAlgebra getCommutator(SpacetimeAlgebra sta1,
                                             SpacetimeAlgebra sta2)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getAntiCommutator

public static SpacetimeAlgebra getAntiCommutator(SpacetimeAlgebra sta1,
                                                 SpacetimeAlgebra sta2)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getAssociator

public static SpacetimeAlgebra getAssociator(SpacetimeAlgebra sta1,
                                             SpacetimeAlgebra sta2,
                                             SpacetimeAlgebra sta3)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getClone

public SpacetimeAlgebra getClone(Hypernumber sta)
Specified by:
getClone in class CliffordAlgebra

getNewInstance

public SpacetimeAlgebra getNewInstance()
Specified by:
getNewInstance in interface CommonMethods
Specified by:
getNewInstance in class CliffordAlgebra

getClone

public Hypernumber getClone()

getBasis

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

getMultTable

public java.lang.String[][] getMultTable()

getNumberOfComponents

public int getNumberOfComponents()

getType

public int getType()

setMultiplicationTable

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

getNumberOfGrades

public int getNumberOfGrades()
                      throws java.lang.Exception
Throws:
java.lang.Exception