mirror of
https://github.com/DifferentiableUniverseInitiative/JaxPM.git
synced 2025-06-30 00:51:11 +00:00
Replace np.power 0.5 by np.sqrt (#43)
* Switch **2 by np.sqrt * format --------- Co-authored-by: Francois Lanusse <fr.eiffel@gmail.com>
This commit is contained in:
parent
6693e5c725
commit
7d76573701
4 changed files with 6 additions and 5 deletions
|
@ -26,7 +26,7 @@ def E(cosmo, a):
|
|||
where :math:`f(a)` is the Dark Energy evolution parameter computed
|
||||
by :py:meth:`.f_de`.
|
||||
"""
|
||||
return np.power(Esqr(cosmo, a), 0.5)
|
||||
return np.sqrt(Esqr(cosmo, a))
|
||||
|
||||
|
||||
def df_de(cosmo, a, epsilon=1e-5):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue