Skip to content

Commit

Permalink
typo in docstring (#1177)
Browse files Browse the repository at this point in the history
Window function that is defined in docstring was incorrect (Factor of 3 within brackets instead of outside).  The window function actually used in the code is fine as far as I can tell.
  • Loading branch information
svonhausegger authored Jun 10, 2024
1 parent 4087bd2 commit dfa2b3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyccl/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def sigmaR(cosmo, R, a=1, *, p_of_k_a=DEFAULT_POWER_SPECTRUM):
\\sigma_R^2(z)=\\frac{1}{2\\pi^2}\\int dk\\,k^2\\,P(k,z)\\,
|W(kR)|^2,
with :math:`W(x)=(3\\sin(x)-x\\cos(x))/x^3`.
with :math:`W(x)=3(\\sin(x)-x\\cos(x))/x^3`.
Args:
cosmo (:class:`~pyccl.cosmology.Cosmology`): Cosmological parameters.
Expand Down Expand Up @@ -134,7 +134,7 @@ def sigmaV(cosmo, R, a=1, *, p_of_k_a=DEFAULT_POWER_SPECTRUM):
.. math::
\\sigma_V^2(z)=\\frac{1}{6\\pi^2}\\int dk\\,P(k,z)\\,|W(kR)|^2,
with :math:`W(x)=(3\\sin(x)-x\\cos(x))/x^3`.
with :math:`W(x)=3(\\sin(x)-x\\cos(x))/x^3`.
Args:
cosmo (:class:`~pyccl.cosmology.Cosmology`): Cosmological parameters.
Expand Down

0 comments on commit dfa2b3b

Please sign in to comment.