Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pygedm/yt2020.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# integrated function excluding n_0^{sphe} (left-hand side of eq.[4])
y_sphe = 4.0*np.pi*r_array**2*mu_e*m_p/c_scaling*np.exp(-Upsilon*(1-np.log(1+r_array/r_s)*r_s/r_array))

I_sphe = integrate.simps(y_sphe,r_array) # integration
I_sphe = integrate.simpson(y_sphe,r_array) # integration
n_0_sphe = M_b/Z_halo/I_sphe # central electron number density for spherical comp. [cm^{-3}]
#print('Upsilon = %f' % Upsilon)
#print('n_0_sphe = %f [cm^{-3}]' % n_0_sphe)
Expand Down