GNU Scientific Library

GNU Scientific Library

infobox software
name = GNU Scientific Library
developer = GNU Project
latest_release_version = 1.11
latest_release_date = 31 March 2008
genre = Numerical library
license = GNU General Public License
website = http://www.gnu.org/software/gsl/

In computing, the GNU Scientific Library (or GSL) is a software library written in the C programming language for numerical calculations in applied mathematics and science. The GSL is part of the GNU project and is distributed under the GNU General Public License.

Software which uses GSL includes Octave, PSPP and Perl Data Language.

Example

The following example program calculates the value of the Bessel function for 5 [http://www.gnu.org/software/gsl/manual/html_node/Using-the-library.html] :


#include
#include

int main(void){ double x = 5.0; double y = gsl_sf_bessel_J0(x); printf("J0(%g) = %.18e ", x, y); return 0;}The example program has to be linked to the GSL libraryupon compilation:

gcc $(gsl-config --cflags) example.c $(gsl-config --libs)

The output is shown below, and should be correct to double-precision accuracy:

J0(5) = -1.775967713143382920e-01

Features

The software library provides facilities for:
*Basic mathematical functions
*Complex numbers
*Polynomials
*Special functions
*Vectors and matrices
*Permutations
*Combinations
*Sorting
*BLAS
*Linear algebra
*Eigensystems
*Fast Fourier transforms
*Numerical integration
*Random number generation
*Quasi-random sequences
*Random number distributions
*Statistics
*Histograms
*N-tuples
*Monte Carlo integration
*Simulated annealing
*Ordinary differential equations
*Interpolation
*Numerical differentiation
*Chebyshev approximations
*Series acceleration
*Discrete Hankel transform
*Root-finding in one and multiple dimensions
*Minimization in one and multiple dimensions
*Least-squares fitting
*Nonlinear least-squares fitting
*Physical constants
*IEEE floating-point arithmetic

C++ support

The GSL can be used in C++ classes, but not using pointers to member functions, because the type of "pointer to member function" is different from "pointer to function" [ [http://www.parashift.com/c++-faq-lite/pointers-to-members.html#faq-33.1 pointer to member function] ] . Instead, pointers to static functions have to be used. C++ wrappers for GSL are available [ [http://cholm.home.cern.ch/cholm/misc/#gslmm C++ wrappers for GSL] ] .

See also

* netlib
* "Numerical Recipes"
* list of numerical analysis software

References

External links

* [http://www.gnu.org/software/gsl/ GNU Scientific Library project page]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • GNU Scientific Library — Тип математическая библиотека Разработчик GNU Project Написана на C Последняя версия 1.15 (6 мая 2011) Лицензия GNU General Public License …   Википедия

  • GNU Scientific Library — (GSL) Entwickler The GSL Team Aktuelle Version 1.15 (6. Mai 2011) Betriebssystem plattformunabhängig Programmier­sprache C, C++ …   Deutsch Wikipedia

  • GNU Scientific Library — Desarrollador proyecto GNU gnu.org/software/gsl/ Información general Última versión estable 1.14 12 de marzo 2010 …   Wikipedia Español

  • GNU Scientific Library — es una biblioteca escrita en C para matemáticas y ciencia, distribuida bajo la licencia GNU GPL …   Enciclopedia Universal

  • GNU Scientific Library — Pour les articles homonymes, voir GSL. GNU Scientific Library …   Wikipédia en Français

  • Gnu Scientific Library — Die GNU Scientific Library (GSL) ist eine Programmbibliothek, die C und C++ Programmierern eine Vielzahl von Funktionen für numerische Berechnungen zur Verfügung stellt. Für andere Programmiersprachen können Wrapper geschrieben werden. Die GSL… …   Deutsch Wikipedia

  • GNU Octave — screenshot Developer(s) …   Wikipedia

  • List of GNU packages — This list of GNU packages lists notable software packages developed for or maintained by the Free Software Foundation for GNU, a Unix like computer operating system composed entirely of free software. Many of these software packages are today… …   Wikipedia

  • University of the Andes Library Services — Newsrelease|date=May 2008 Infobox Library library name = Servicios Bibliotecarios de la Universidad de Los Andes (SERBIULA) library caption = location = Mérida, Trujillo, San Cristobal, El Vigía, Guanare and Valera [ [...] se abren extensiones de …   Wikipedia

  • Visualization Library — infobox software name = Visualization Library genre = 3D graphics latest release version = Alpha 1 operating system = Cross platform license = GNU GPL 3 website = http://www.visualizationlibrary.com [http://www.visualizationlibrary.com… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”