darkhistory.electrons.ics.ics_spectrum.thomson_spec_diff¶
-
darkhistory.electrons.ics.ics_spectrum.
thomson_spec_diff
(eleckineng, photeng, T, as_pairs=False)¶ Thomson ICS spectrum of secondary photons by beta expansion.
Parameters: - eleckineng : ndarray
Incoming electron kinetic energy.
- photeng : ndarray
Outgoing photon energy.
- T : float
CMB temperature.
- as_pairs : bool
If true, treats eleckineng and photeng as a paired list: produces eleckineng.size == photeng.size values. Otherwise, gets the spectrum at each photeng for each eleckineng, returning an array of length eleckineng.size*photeng.size.
Returns: - tuple of ndarrays
dN/(dt dE) of the outgoing photons (dt = 1 s) and the error, with abscissa given by (eleckineng, photeng).
Notes
Insert note on the suitability of the method.