Skip to content

Commit

Permalink
make default firstIdx=1
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenovic committed Sep 28, 2016
1 parent 021e6b8 commit 737ce4d
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 79 deletions.
2 changes: 1 addition & 1 deletion clifford/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ def elements(dims, firstIdx=0):
return blades


def Cl(p, q=0, names=None, firstIdx=0, mvClass=MultiVector):
def Cl(p, q=0, names=None, firstIdx=1, mvClass=MultiVector):
"""Returns a Layout and basis blades for the geometric algebra Cl_p,q.
The notation Cl_p,q means that the algebra is p+q dimensional, with
Expand Down
15 changes: 3 additions & 12 deletions docs/QuickStartG2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"outputs": [],
"source": [
"import clifford as cf\n",
"cf.pretty(precision=3) # sets display precision\n",
"layout, blades = cf.Cl(2, firstIdx=1) # creates a 2-dimensional clifford algebra\n"
"\n",
"layout, blades = cf.Cl(2) # creates a 2-dimensional clifford algebra"
]
},
{
Expand Down Expand Up @@ -199,7 +199,7 @@
{
"data": {
"text/plain": [
"0.707 + (0.707^e12)"
"0.70711 + (0.70711^e12)"
]
},
"execution_count": 8,
Expand Down Expand Up @@ -235,15 +235,6 @@
"source": [
"R*e1*~R # rotate e1 by pi/2 in the e12-plane"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 737ce4d

Please sign in to comment.