> The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License.
>The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over
>1000 functions in total with an extensive test suite.
For more information have a look at: http://www.gnu.org/software/gsl/
The ROOT MathMore library is simple wrapper classes around GSL functions.
In AUSAlib we use a GSL routine for [a fast Energy Loss Integrator](include/ausa/eloss/GslIntegrator.h).
# Installation
## Ubuntu
```bash
sudo apt-get install gsl-bin libgsl0-dev
```
## OSX
*[homebrew](https://brew.sh):
```
sudo brew install gsl
```
This installs GSL 1.6 (stable)
*[MacPort](https://www.macports.org/):
```
sudo port install gsl
```
This installs GSL 2.1 (stable)
# GSL in other project
If you want to use GSL in your project you have to add the following to your CMakeLists.txt:
```cmake
find_package(GSL)
if(GSL_FOUND)
message(STATUS "Found GSL")
include_directories(${GSL_INCLUDE_DIRS})
target_link_libraries(AUSA ${GSL_LIBRARIES})
add_definitions("-DHAVE_GSL")
endif(GSL_FOUND)
```
where you should replace AUSA with the name of your project.