gnu科学计算工具gsl

    1. 安装

      1
      2
      3
      sudo ./configure
      sudo make
      sudo make install
    2. 编译

      1
      2
      gcc -g -c -Wall besselFunction.c
      gcc -g -o besselFunction besselFunction.o -lgsl -lgslcblas -lm
  1. 函数与变量类型

    1
    2

    #include <gsl/gsl_foo.h>
    1. 函数

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      gsl_foo_fn				double
      gsl_foo_long_double_fn long double
      gsl_foo_float_fn float
      gsl_foo_long_fn long
      gsl_foo_ulong_fn unsigned long
      gsl_foo_int_fn int
      gsl_foo_uint_fn unsigned int
      gsl_foo_short_fn short
      gsl_foo_ushort_fn unsigned short
      gsl_foo_char_fn char
      gsl_foo_uchar_fn unsigned char
    2. 变量

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      gsl_foo					double
      gsl_foo_long_double long double
      gsl_foo_float float
      gsl_foo_long long
      gsl_foo_ulong unsigned long
      gsl_foo_int int
      gsl_foo_uint unsigned int
      gsl_foo_short short
      gsl_foo_ushort unsigned short
      gsl_foo_char char
      gsl_foo_uchar unsigned char