integrate_power_law#

sunkit_spex.photon_power_law.integrate_power_law(energy: Unit('keV'), norm_energy: Unit('keV'), norm: Unit('ph / (keV s cm2)'), index: Unit(dimensionless))[source]#

Evaluate the antiderivative of a power law at a given energy or vector of energies.

The power law antiderivative evaluated by this function is assumed to take the following form, \(f(E) = N \left( \frac{E}{E_0} \right)^{- \gamma}\), where \(E\) is the energy, \(N\) is the normalization, \(E_0\) is the normalization energy, and \(\gamma\) is the power law index.

The value of \(\gamma\) is assumed to be positive, but the functional form includes a negative sign.

The special case of \(\gamma = 1\) is handled.

Parameters:
  • energy (astropy.units.Quantity) – Energy (or vector of energies) at which to evaluate the power law antiderivative.

  • norm_energy (astropy.units.Quantity) – Energy used for the normalization of the power law argument, i.e. \(E_0\).

  • norm (astropy.units.Quantity) – Normalization of the power law integral, i.e. \(N\), in units convertible to ph / (cm2 . keV . s).

  • index (astropy.units.Quantity) – The power law index, i.e. \(\gamma\).

Returns:

Analytical antiderivative of a power law evaluated at the given energies.

Return type:

astropy.units.Quantity