# agnpy Documentation

agnpy focuses on the numerical computation of the photon spectra produced by particles radiative processes in jetted Active Galactic Nuclei (AGN).

## Description

### References

Notation and basic formulas are borrowed from [DermerMenon2009] which constitutes the fundamental reference for this package. The implementation of synchrotron and synchrotron self Compton radiative processes relies on [DermerMenon2009] and [Finke2008]. [Dermer2009] and [Finke2016] are instead the main references for the external Compton and $$\gamma\gamma$$ absorption implementation.

### Implementation

The numerical operations are delegated to numpy arrays, all the physical quantities computed are casted as astropy Quantities.

The code is licensed under a BSD-3-Clause License (see LICENSE.md in the main repository).

## Installation

The code is available in the python package index and can be installed via pip

pip install agnpy


The code can also be installed with conda

conda install -c conda-forge agnpy


## Dependencies

The only dependencies are:

• numpy managing the numerical computation;

• astropy managing physical units and astronomical distances;

• scipy for interpolation;

• matplotlib for visualisation and reproduction of the tutorials.

sherpa and gammapy are additionaly required to use agnpy for fitting, i.e. to use the wrappers in the agnpy.fit module.

## Overview

The documentation includes several tutorial jupyter notebooks providing examples of applications of the code functionalities.