BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help
Not What You Meant?  There are 7 definitions for GSL.

GNU Scientific Library

Print-Friendly
About 1 pages (430 words)

Bookmark and Share Know this topic well? Help others and get FREE products!
GNU Scientific Library
Latest release 1.10 / 15 September 2007
Genre Numerical library
License GNU General Public License
Website http://www.gnu.org/software/gsl/

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. The GSL can be used in C++, but not using pointers to member functions. C++ programmers have to use static functions redirecting to the correct member function, since the address used for static member functions in C++ is compatible with the GSL.

Contents

Example

The following example program calculates the value of the Bessel function for 5 [1]:

#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
int
main (void)
{
  double x = 5.0;
  double y = gsl_sf_bessel_J0 (x);
  printf ("J0(%g) = %.18e\n", x, y);
  return 0;
}

The example program has to be linked to the GSL library upon 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:

See also

Free software Portal

External links

View More Summaries on GNU Scientific Library
 
Ask any question on GNU Scientific Library and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
GNU Scientific Library from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy