Skip to content

Commit

Permalink
FIX: simplify factors
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 13, 2023
1 parent 44117c6 commit b4e2548
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/collect-wigners.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"mystnb": {
"code_prompt_show": "Collect Wigner-D functions"
},
Expand All @@ -333,7 +330,7 @@
"\"\"\"\n",
"for x in dynamic_symbols:\n",
" filter_substitutions = {s: 1 if s == x else 0 for s in dynamic_symbols}\n",
" factor = full_expression.xreplace(filter_substitutions)\n",
" factor = full_expression.xreplace(filter_substitutions).simplify()\n",
" src += Rf\"{sp.latex(x)} &:& {sp.latex(factor)} \\\\\" \"\\n\"\n",
"src += R\"\\end{eqnarray}\"\n",
"Latex(src)"
Expand Down

0 comments on commit b4e2548

Please sign in to comment.