darkhistory.electrons.ics.nonrel_diff_terms.Q_and_K¶
-
darkhistory.electrons.ics.nonrel_diff_terms.
Q_and_K
(beta, photeng, T, as_pairs=False)¶ Computes the Q and K term.
This term is used in the beta expansion method for computing the nonrelativistic ICS spectrum.
Parameters: - beta : ndarray
Velocity of the electron.
- photeng : ndarray
Secondary photon energy.
- T : float
CMB temperature
- as_pairs : bool, optional
If true, treats eleceng and photeng as a paired list: produces eleceng.size == photeng.size values. Otherwise, gets the spectrum at each photeng for each eleceng, returning an array of length eleceng.size*photeng.size.
Returns: - ndarray
The Q and K term.