Giter Club home page Giter Club logo

geometric-algebra's Introduction

Geometric Algebra

Mathematica packages for Clifford (geometric) algebra calculations:

CGAlgebra

CGAlgebra.m is a Mathematica package for the 5D Conformal Geometric Algebra.

This package contains declarations for calculations with Conformal Geometric Algebra. Basis vectors {e0, e1, e2, e3, eInfinity} are denoted by e[0], e[1], e[2], e[3], e[Infinity]. Geometric products of basis elements are denoted as e[0,1,2] (= e0 e1 e2), etc.

The results of any calculation is given in terms of the geometric product of basis elements, that is, the outer (Grassman) product of basis elements or multivectors is calculated by using OuterProduct[] and the output is given in terms of geometric product of basis vectors.

Examples:

The vector e0 + 2 e1 + eInfinity is written as:

     A = e[0] + 2 e[1] + e[\[Infinity]];

The multivector a + 5 e1 + e1e2e3 is

     B = a + 5 e[1] + e[1,2,3];

The geometric product

    GeometricProduct[A,B]

yields:

 a e[0] + 2a e[1] + a e[\[Infinity]] + 5 e[0,1] - 5 e[1,\[Infinity]] + e[0,1,2,3] - e[1,2,3,\[Infinity]]

The inner product (left contraction)

   InnerProduct[A,B]

yields

   10 + 2 e[2,3]

A tutorial can be downloaded from: https://arxiv.org/abs/1711.02513

Clifford

clifford.m is the most recent version of the package by G. Aragon-Camarasa, G. Aragon-Gonzalez, J.L. Aragon and M.A. Rodriguez-Andrade. A user guide (CliffordUserGuide) is available, as well as Mathematica palette (CliffordPalette). The fundamentals of the package are presented in:

https://arxiv.org/abs/0810.2412

CliffordBasic

CliffordBasic.m is a completely renewed but reduced version of clifford.m package by G. Aragon-Camarasa, G. Aragon-Gonzalez, J.L. Aragon and M.A. Rodriguez-Andrade: https://arxiv.org/abs/0810.2412

Using rule-base programming the algebra over Rp,q in arbitrary dimensions is constructed as in A. Macdonald "An Elementary Construction of Geometric Algebra", Adv. Appl. Cliff. Alg. 12 (2002) 1-6.

In CliffordBasic, the j-th basis vector is denoted by e[j] and the geometric product of basis vectors, such as e1e3e4, as e[1,3,4].

Examples:

The vector e1 + 2 e2 - a e3 is written as

    A = e[2] + 2 e[2] - a e[3];

The The multivector a + 5 e1 + e1 e2 e3 is written as

     B = a + 5 e[1] + e[1,2,3];

The geometric product AB is calculated as

    GeometricProduct[A,B]

yielding:

    3 a e[2] - a^2 e[3] - 15 e[1,2] - a e[1,2] - 3 e[1,3] + 5 a e[1,3]

which can be factored using

     GFactor[%]
     
     3 a e[2] - a^2 e[3] + (-15-a) e[1,2] + (-3 + 5 a)e[1,3]

The signature of the Rp,q is set by $SetSignature={p,q}. If not specified, the default value is:

     $SetSignature={20,0}        

geometric-algebra's People

Contributors

jlaragonvera avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.