Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:gsl_gnu_scientific_library_au_centre_de_calcul [2016/12/05 14:43] (current)
Line 1: Line 1:
 +Last modified: Aug 27, 2008 by Calas\\
 +\\
 +
 +====== GSL (GNU Scientific Library) at Computer Center ======
 +
 +\\
 +**GSL** is the library for numerical scientific calculations. You can use GSL from C or C++ languages.\\
 +\\
 +The documentation is available from URL: http://​www.gnu.org/​software/​gsl/​\\
 +\\
 +Here is a small example (see the doc for the details) ( //​bessel.c//​ ):
 +<​code>​
 +#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) = %.18en",​ x, y);
 +       ​return 0;
 +     }
 +</​code>​
 +and to execute this test type:
 +<​code>​
 +set root = /usr/local
 +set incl = ${root}/​include
 +set lib  = ${root}/lib
 +cc -c -I${incl} bessel.c
 +cc bessel.o -L${lib} -lgsl -lgslcblas -lm
 +./a.out
 +</​code>​
 +To choose the version of **GSL** , you should define the variable ${root} (see the given example) as follows:\\
 +\\
 +
 +^**version**^**Linux SL3**           ​^**Linux SL4 32 bits** ​  ​^**Linux SL4 64 bits** ​  ^
 +|1.9        |/​usr/​local/​{lib,​include}|/​usr/​local/​{lib,​include}|/​usr/​local/​{lib,​include}|
 +
 +[[:​en:​soft_liste_des_logiciels_disponibles_au_centre_de_calcul|Access the list of software available at Computing Center]]
 +
  
  • en/gsl_gnu_scientific_library_au_centre_de_calcul.txt
  • Last modified: 2016/12/05 14:43
  • (external edit)