{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Predefined Geometric Algebras" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "`clifford` provides several predefined algebras, \n", "\n", "* `g2` : 2D Euclidean \n", "* `g3` : 3D Euclidean \n", "* `g4` : 4D Euclidean \n", "* `g2c` : Conformal space for G2 (G3,1)\n", "* `g3c` : Conformal space for G3 (G4,1)\n", "\n", "You can use them like so" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from clifford import g2\n", "\n", "g2.e1*g2.e2" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The `layout` and `blades` are also available, " ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "g2.layout" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "g2.blades" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Or, specifically import the blades you need for your app" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from clifford.g2 import e1,e2,e12\n", "e1*e2==e12" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "IPython (Python 2)", "language": "python", "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.12" } }, "nbformat": 4, "nbformat_minor": 1 }