diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..fa65608 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +*.ipynb diff --git a/docs/gluex-amplitude.ipynb b/docs/gluex-amplitude.ipynb index bd234ae..96e228f 100644 --- a/docs/gluex-amplitude.ipynb +++ b/docs/gluex-amplitude.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# GlueX amplitude model with SymPy" + "# Symbolic amplitude model" ] }, { @@ -208,10 +208,10 @@ "\n", "\n", "def create_range(__min, __max) -> tuple[sp.Rational, ...]:\n", - " return tuple(sp.Rational(x) for x in arange(__min, __max))\n", + " return tuple(sp.Rational(x) for x in arange(__min, __max + 1))\n", "\n", "\n", - "max_l = 1\n", + "max_l = 0\n", "l_range = create_range(0, max_l)\n", "m_range = create_range(-max_l, max_l)\n", "lp = sp.IndexedBase(\"[l]^{(+)}\", complex=True)\n", @@ -228,7 +228,7 @@ " * (PoolSum(lp[m, k] * sp.re(znm), (l, l_range), (m, m_range))) ** 2\n", " + (1 + Py)\n", " * (PoolSum(lm[m, k] * sp.im(znm), (l, l_range), (m, m_range))) ** 2,\n", - " (k, [-1, +1]),\n", + " (k, [0]),\n", " )\n", ")\n", "intensity_expr"