GSL - GNU Scientific Library

 [image of the Head of a GNU]


Table of contents


Introduction to GSL

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.

The current version is GSL-1.5. It was released on 25 June 2004.

Here is a screenshot of some GSL code (png, 14k).

The complete range of subject areas covered by the library includes,

Complex Numbers Roots of Polynomials Special Functions
Vectors and Matrices Permutations Sorting
BLAS Support Linear Algebra Eigensystems
Fast Fourier Transforms Quadrature Random Numbers
Quasi-Random Sequences Random Distributions Statistics
Histograms N-Tuples Monte Carlo Integration
Simulated Annealing Differential Equations Interpolation
Numerical Differentiation Chebyshev Approximation Series Acceleration
Discrete Hankel Transforms Root-Finding Minimization
Least-Squares Fitting Physical Constants IEEE Floating-Point

Unlike the licenses of proprietary numerical libraries the license of GSL does not restrict scientific cooperation. It allows you to share your programs freely with others.

Downloading GSL

GSL can be found in the subdirectory /gnu/gsl/ on your favorite GNU mirror.

For other ways to obtain GSL, please read How to get GNU Software

Documentation

GSL includes a 500 page reference manual in Texinfo format. You can can print the manual in postscript or read it online using the shell command info gsl-ref (if the library is installed).

The GSL Reference Manual is available online,

The manual is also available as a printed book (under the GNU Free Documentation License),
GNU Scientific Library Reference Manual - Second Edition,
M. Galassi et al, ISBN 0954161734 (paperback).

It is available from most online bookstores.

For ordering information, see www.network-theory.co.uk.

Supported Platforms

GSL is developed on the following platforms,

It has been reported to compile on the following other platforms,

We require that GSL should build on any Unix-like system with an ANSI C compiler, so if doesn't, that's a bug and we would love a patch!

If you have found a bug, please send a note to bug-gsl@gnu.org.

Mailing Lists

Announcements of new releases are made on the Info-gsl <info-gsl@gnu.org> mailing list.

Bug reports for the GNU Scientific Library should be sent to the Bug-gsl <bug-gsl@gnu.org> mailing list.

If you have questions about installation, how GSL works and how it is used, or general questions concerning GSL, you can send an e-mail to the Help-gsl <help-gsl@gnu.org> mailing list.

Motivation

Here are some of the main benefits of using a free scientific library under the GNU General Public License,

Special Features

The library uses an object-oriented design. Different algorithms can be plugged-in easily or changed at run-time without recompiling the program.

It is intended for ordinary scientific users. Anyone who knows some C programming will be able to start using the library straight-away.

The interface was designed to be simple to link into very high-level languages, such as GNU Guile or Python

The library is thread-safe.

Where possible the routines have been based on reliable public-domain Fortran packages such as FFTPACK and QUADPACK, which the developers of GSL have reimplemented in C with modern coding conventions.

Licensing

GSL is distributed under the terms of the GNU General Public License (GPL).

The reasons why the GNU Project uses the GPL are described in the following articles:

Additional information for researchers is available in the following article:

Some answers to common questions about the license:

If I write an application which uses GSL am I forced to distribute that application?
No. The license gives you the option to distribute your application if you want to. You do not have to exercise this option in the license.

If I wanted to distribute an application which uses GSL what license would I need to use?
The GNU General Public License (GPL).

Do you ever make exceptions to allow GSL to be redistributed in proprietary-licensed software?
No, sorry.

The bottom line for commercial users:

GSL can be used internally ("in-house") without restriction, but not redistributed in proprietary-licensed software.

Commercial Support

Commercial support for GNU software is available from companies listed in the GNU Service Directory.

The following companies specifically mention the GNU Scientific Library,

More Information

The development website for GSL is at http://sources.redhat.com/gsl/.

The development website has a list of precompiled binaries available for different platforms, wrappers for different languages and other information.

The main Debian package for GSL is libgsl0-dev.

The development website also contains the gsl-discuss development mailing list archives.

Citations

If you would like to refer to the GNU Scientific Library in a journal article, the recommended way is to cite the reference manual, e.g. Galassi et al, GNU Scientific Library Reference Manual (2nd Ed.), ISBN 0954161734.

If you want to give a url, use "http://www.gnu.org/software/gsl/".

Related Packages

GSL requires a BLAS library for vector and matrix operations. The default CBLAS library supplied with GSL can be replaced by ATLAS for better performance,

ATLAS is free software and its license is compatible with the GNU GPL.

Other packages that are useful for scientific computing are:

Both of these packages are free software (GNU GPL).

Project Background

The project was conceived in 1996 by Dr M. Galassi and Dr J. Theiler of Los Alamos National Laboratory.

They were joined by other physicists who also felt that the licenses of existing libraries were hindering scientific cooperation.

Most of the library has been written by a relatively small number of people with backgrounds in computational physics in order to provide a consistent and reasonably-designed framework.

Overall development of the library and the design and implementation of the major modules was carried out by Dr G. Jungman and Dr B. Gough. Modules were also written by Dr J. Davies, R. Priedhorsky, Dr M. Booth, and Dr F. Rossi, along with many useful contributions from others in the user community. Debian packages for the library are maintained by Dr D. Eddelbuettel.

Release History

How to help

Volunteers are needed to add new algorithms or functions into the existing framework, and to work on the wrappers for other languages. Any contributions from experts in numerical analysis are especially welcome. The following routines are currently needed:

If you are interested in volunteering, you can contact the developers through the mailing list gsl-discuss@sources.redhat.com.


Return to GNU's home page.

Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to contact the FSF.

Please send comments on these web pages to webmasters@gnu.org, send other questions to gnu@gnu.org.

Copyright (C) 2001 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.

Updated: $Date: 2004/08/24 11:32:05 $ $Author: bjg $