Skip to content

Commit

Permalink
updated docs, try to fix pip build error
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenovic committed Jul 19, 2017
1 parent 67e8c86 commit 2974392
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 616 deletions.
122 changes: 23 additions & 99 deletions docs/QuickStartG2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"collapsed": false
},
Expand All @@ -50,22 +50,11 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"{'e1': (1.0^e1), 'e12': (1.0^e12), 'e2': (1.0^e2)}"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"blades "
]
Expand All @@ -79,7 +68,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {
"collapsed": false
},
Expand All @@ -99,66 +88,33 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"(1.0^e12)"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"e1*e2 # geometric product"
]
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"0"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"e1|e2 # inner product "
]
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"(1.0^e12)"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"e1^e2 # outer product"
]
Expand All @@ -172,22 +128,11 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"-(1.0^e1) + (1.0^e2)"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"a = e1+e2 # the vector\n",
"n = e1 # the reflector\n",
Expand All @@ -197,30 +142,19 @@
{
"cell_type": "markdown",
"metadata": {
"collapsed": true
"collapsed": false
},
"source": [
"## Rotation"
]
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"0.70711 + (0.70711^e12)"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"from numpy import pi\n",
"\n",
Expand All @@ -230,44 +164,34 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"-(1.0^e2)"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"R*e1*~R # rotate e1 by pi/2 in the e12-plane"
]
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "IPython (Python 2)",
"display_name": "Python [default]",
"language": "python",
"name": "python2"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
"pygments_lexer": "ipython3",
"version": "3.5.2"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 2974392

Please sign in to comment.