: GSL redirects here. For General Sales List items, see Over-the-counter substance.
In Computing, 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.
= Example =
The following example program calculates the value of the Bessel function for 5 [http://www.gnu.org/software/gsl/manual/gsl-ref_2.html#SEC10]:
#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 output is shown below, and should be correct to double-precision accuracy,
J0(5) = -1.775967713143382920e-01
= Features =
The software library provides facilities for:
*elementary function
*Complex numbers
*Polynomials
*Special functions
Airy functions
Airy functions
Derivatives of Airy functions
Zeros of Airy functions
Zeros of derivatives of Airy functions
Bessel functions
Regular cylindrical Bessel functions
Irregular cylindrical Bessel functions
Regular modified cylindrical Bessel functions
Irregular modified cylindrical Bessel functions
Regular spherical Bessel functions
Irregular spherical Bessel functions
Regular modified spherical Bessel functions
Irregular modified spherical Bessel functions
Regular Bessel function - fractional order
Irregular Bessel functions - fractional order
Regular modified Bessel functions - fractional order
Irregular modified Bessel functions - fractional order
Zeros of regular Bessel functions
Clausen functions
Coulomb functions
Normalized hydrogenic bound states
Coulomb wave functions
Coulomb wave function normalization constant
Coupling coefficients
3-j symbols
6-j symbols
9-j symbols
Dawson function
Debye functions
Dilogarithm
Elementary operations
Elliptic integrals
Definition of Legendre forms
Definition of Carlson forms
Legendre form of complete elliptic integrals
Legendre form of incomplete elliptic integrals
Carlson forms
Elliptic functions (Jacobi)
Error functions
Error function
Complementary error function
Log complementary error function
Probability functions
Exponential functions
Exponential function
Relative exponential functions
Exponentiation with error estimate
Exponential integrals
Exponential integral
Ei(x)
Hyperbolic integrals
Ei_3(x)
Trigonometric integrals
Arctangent integral
Fermi-Dirac function
Complete Fermi-Dirac integrals
Incomplete Fermi-Dirac integrals
Gamma function
Gegenbauer functions
Hypergeometric functions
Laguerre functions
Lambert W functions
Legendre functions and spherical harmonics
Legendre polynomials
Associated Legendre polynomials and spherical harmonics
Conical functions
Radial functions for hyperbolic space
logarithms
Power function
Digamma function
Digamma function
Trigamma function
Polygamma function
Synchrotron functions
Transport functions
Trigonometric functions
Circular trigonometric functions
trigonometric functons
Hyperbolic trigonometric functions
Conversion functions
Restriction functions
Trigonometric functions with error estimates
Zeta functions
Riemann zeta function
Riemann zeta function
Hurwitz zeta function
Eta function
*Vectors and Matrix (mathematics)
*
Permutations
*Combinations
*
Sorting
*BLAS
*Linear algebra
*Eigensystems
*Fast Fourier transforms
*Numerical integration
*Random number generator
*Quasi-random sequences
*probability distribution
**normal distribution
**normal distribution
**Bivariate Gaussian distribution
**Exponential distribution
**Laplace distribution
**Exponential power distribution
**Cauchy distribution
**Rayleigh distribution
**Rayleigh distribution
**Landau distribution
**Levy alpha-stable distributions
**Levy skew alpha-stable distribution
**Gamma distribution
**Uniform distribution
**Lognormal distribution
**Chi-squared distribution
**F-distribution
**t-distribution
**Beta distribution
**Logistic distribution
**Pareto distribution
**Spherical vector distributions
**Weibull distribution
**Type-1 Gumbel distribution
**Type-2 Gumbel distribution
**Dirichlet distribution
**General discrete distributions
**Poisson distribution
**Bernoulli distribution
**Binomial distribution
**Multinomial distribution
**Negative binomial distribution
**Pascal distribution
**Geometric distribution
**Hypergeometric distribution
**Logarithmic distribution
*Statistics
*Histograms
*N-tuples
*Monte Carlo integration
*Simulated Annealing
*Ordinary differential equations
*Interpolation
*Numerical differentiation
*Chebyshev approximations
*Series acceleration
*Discrete Hankel Transforms
*One dimensional root-finding
*One dimensional minimization
*Multidimensional root-finding
*Multidimensional minimization
*least squares
*Levenberg-Marquardt algorithm
*Physical constants
*IEEE floating-point arithmetic
=See also=
netlib
Numerical Recipes
=External links=
[http://www.gnu.org/software/gsl/manual/ GNU Scientific Library Manual]