Avatar
分类
搜索
最新评论
最新留言
链接
标签云
功能
gsl
mayflowers
posted @ 2011年4月25日 13:00
in Linux
, 2510 阅读
The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License.
The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite.
The complete range of subject areas covered by the library includes:
Complex Numbers | Roots of Polynomials |
Special Functions | Vectors and Matrices |
Permutations | Sorting |
BLAS Support | Linear Algebra |
Eigensystems | Fast Fourier Transforms |
Quadrature | Random Numbers |
Quasi-Random Sequences | Random Distributions |
Statistics | Histograms |
N-Tuples | Monte Carlo Integration |
Simulated Annealing | Differential Equations |
Interpolation | Numerical Differentiation |
Chebyshev Approximation | Series Acceleration |
Discrete Hankel Transforms | Root-Finding |
Minimization | Least-Squares Fitting |
Physical Constants | IEEE Floating-Point |
Discrete Wavelet Transforms | Basis splines |
Unlike the licenses of proprietary numerical libraries the license of GSL does not restrict scientific cooperation. It allows you to share your programs freely with others.
http://www.gnu.org/software/gsl/
1. Install
$yum install gsl gsl-devel
gsl-1.14-1.fc14.x86_64 /usr/bin/gsl-histogram 用于计算数据直方图的程序 /usr/bin/gsl-randist 用于生成指定分布的随机数的程序 /usr/lib64/libgsl.so.0 /usr/lib64/libgsl.so.0.15.0 /usr/lib64/libgslcblas.so.0 /usr/lib64/libgslcblas.so.0.0.0 /usr/share/...
gsl-devel-1.14-1.fc14.x86_64: /usr/include/gsl /usr/lib64/libgsl.so /usr/lib64/libgslcblas.so /usr/share/...
2. Test
// gsl_test.c #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; }
$ gcc gsl_test.c -lgsl $ ./a.out J0(5)=-1.775967713143382642e-01
2022年8月16日 19:25
Uttarakhand Board Model Paper 2023 Class 6 Pdf Download with Answers for English Medium, Hindi Medium, Urdu Medium & Students for Small Answers, Long Answer, Very Long Answer Questions, and Essay Type Questions to Term1 & Term2 Exams
2022年8月17日 20:52
New Question Papers & New Model Papers for the Bihar Board's 10th Grade for 2023 Common & Private, Good news! Students who failed last year's exams can get their BSEB 10th Matric Important Question Paper 2023 from either our website or the Bihar board's official web domain. Here, we're going to give you all the information about the Bihar Class 10 Exam Paper. BSEB Matric Model Paper 2023 For high school students, the Bihar Secondary Examination will administer tests in the fields of Science, Arts, and Commerce. Additionally, it administers a number of departmental exams, including the Teacher Training Examination and the Diploma in Physical Education.
2023年7月13日 17:19
Meghalaya 1st Class Syllabus 2024 is Designed in Accordance with the NCERT Based Guidelines and helps Students to get an Overview of the Hindi, English Medium All Subject, SCERT Meghalaya keeps a 1st Class Exam Pattern with the aim to Provide a Quality Education for All Students, On the basis of the Current Educational Demands.This Meghalaya Primary School Exam Attended Every Year More than Laks of Students Meghalaya 1st Class Syllabus 2024 Students are Required to Visit website of MBOSE Details to check their MBOSE 1st Syllabus 2024, It must be noted that MBOSE has made the Study Material of Public Examinations Available in the Online mode only, Keeping the Convenience of the Students in mind