Skip to main content

Posts

Showing posts with the label GNU

数学库GSL学习(1)

数学库GSL学习(1) Linux下安装 在官网下载某一版本 解压 tar -xzvf gsl-2.5.tar.gz 安装 ​ x 1 cd gsl-2.5 2 ​ 3 ./autogen.sh 4 ​ 5 ./configure --enable-maintainer-mode 6 ​ 7 make 8 ​ 9 make install 编写文件 example.c xxxxxxxxxx 15 1 #include <iostream> 2 #include <iomanip> 3 #include <gsl/gsl_sf_bessel.h> 4 using namespace std ; 5 ​ 6 int main ( void ) 7 { 8         double x = 5.0 ; 9         double y = gsl_sf_bessel_J0 ( x ); 10         cout . setf ( ios::fixed ); 11         cout << "J0(" << setprecision ( 1 ) << x << ") = " ; 12         cout . setf ( ios::scientific , ios::floatfield ); 13         c...