tadeodaguilar & Luis E. Padilla
The betaPBH library requires Python 3.10 or later to be installed on your system.
pip package manager: The pip package manager is used to install betaPBH and its dependencies. It should be included with your Python installation by default.
In general, when you install betaPBH
, the setup.py
will install all dependences: matplotlib
(v-3.7.1), numpy
(v-1.22.4), scipy
(v-1.10.1).
If this not happend, you need install manually to use betaPBH
Note: betaPBH
runs both in Python
2.x and 3.x. However, we highly recommend Python 3.x
from betaPBH import functions, constants, constraints, BfN, BfS
import matplotlib.pyplot as plt
import numpy as np
functions.put_M_array()
M_tot = np.array(constraints.M_tot)
plt.loglog(M_tot,BfN.get_betas_reh_tot(10,0,1),label = r"$N_{\rm reh}=10$")
plt.loglog(M_tot,BfN.get_betas_reh_tot(20,0,1),label = r"$N_{\rm reh}=20$")
plt.loglog(M_tot,BfN.get_betas_reh_tot(30,0,1),label = r"$N_{\rm reh}=30$")
plt.ylim([1e-30,1])
plt.xlim([1,1e20])
plt.xlabel(r"$M_{\rm PBH}~[\rm{g}]$")
plt.ylabel(r"$\beta$")
plt.legend(ncol=2,bbox_to_anchor=(0.85, 1.5))
plt.show()
If you use
Thanks for use betaPBH