Skip to content

Commit

Permalink
Cover undual and norm2 functions with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Apr 7, 2024
1 parent c542366 commit 7e39136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ipython/test_gsg_undual_etc.ipynb
Expand Up @@ -349,7 +349,7 @@
"gprint(r'\\mathbf{A}^{\\star} =', A.dual().Fmt(2))\n",
"gprint(r'\\mathbf{A}^{-\\star} =', A.undual().Fmt(2))\n",
"gprint(r'\\mathbf{A}^{-\\star} = -\\mathbf{A}^{\\star}:~~',\n",
" A.undual() == - A.dual(), \n",
" undual(A) == - A.dual(), \n",
" r'\\qquad \\text {(Note: }\\mathbf{I}^2 =', I**2, ')')\n",
"\n",
"# Check whether method `dual` and method `undual` have inverse actions:\n",
Expand Down Expand Up @@ -1280,7 +1280,7 @@
" gprint(r'\\left<' +M_str[M]+r'\\right>_'+str(g)+r' =',\n",
" M.grade(g), r'\\in ', ga_str[M.grade(g).Ga]) \n",
" gprint(r'\\qquad \\implies \\Vert\\left<'+M_str[M]+r'\\right>_'\n",
" +str(g)+r'\\Vert^2 =', M.grade(g).norm2())\n",
" +str(g)+r'\\Vert^2 =', norm2(M.grade(g)))\n",
" gprint(r'\\qquad \\implies \\vert\\left<'+M_str[M]+r'\\right>_'\n",
" +str(g)+r'\\vert =', M.grade(g).norm('0'),\n",
" r\"\\quad \\text{ when hint is '0'}\")\n",
Expand Down

0 comments on commit 7e39136

Please sign in to comment.