没有合适的资源?快使用搜索试试~ 我知道了~
GSL(GNU Scientific Library)英文版参考手册,C/C++科学计算库
资源推荐
资源详情
资源评论
GNU Scientific Library
Reference Manual
Edition 2.3, for GSL Version 2.3
9 December 2016
Mark Galassi
Los Alamos National Laboratory
Jim Davies
Department of Computer Science, Georgia Institute of Technology
James Theiler
Astrophysics and Radiation Measurements Gr ou p, Los Alamos National Laboratory
Brian Gough
Network Theory Limited
Gerard Jungman
Theoretical Astrophysics Group, Los Alamos National Laboratory
Patrick Alken
University of Colorado at Boulder
Michael Booth
Department of Physics and Astronomy, The Johns Hopkins University
Fabrice Rossi
University of Paris-Dauphine
Rhys Ulerich
Copyright
c
1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 The GSL Team.
Permission is granted to copy, distrib ute and/or modify this document under the terms of
the GNU Free Documentation License, Version 1.3 or any later version published by the Free
Software Foundation; with the Invariant Sections being “GNU General Public License” and
“Free Software Needs Free Documentation”, the Front-Cover text being “A GNU Manual”,
and with the Back-Cover Text being (a) (see below). A copy of the license is included in
the section entitled “GNU Free Documentation License”.
(a) The Back-Cover Text is: “You have the freedom to copy and mo dify this GNU Manual.”
Printed copies of this manual can be purchased from Network Theory Ltd at http://www.
network-theory.co.uk/gsl/manual/.
The money raised from sales of the manual helps sup port the development of GSL.
i
Table of Contents
1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Routines available in GSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 GSL is Free Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Obtaining GSL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 No Warranty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.5 Reporting Bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.6 Further Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.7 Conventions used in this manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Using the library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 An Example Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Compiling and Linking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.1 Linking programs with the library . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.2 Linking with an alternative BLAS library . . . . . . . . . . . . . . . . . . 5
2.3 Shared Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.4 ANSI C Compliance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.5 Inline functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.6 Long double. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.7 Portability functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.8 Alternative optimized functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.9 Support for different numeric types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.10 Compatibility with C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.11 Aliasing of arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.12 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.13 Deprecated Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.14 Code Reuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 Error Reporting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2 Error Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.3 Error Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.4 Using GSL error reporting in your own functions . . . . . . . . . . . . . . 13
3.5 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4 Mathematical Functions . . . . . . . . . . . . . . . . . . . . . . 16
4.1 Mathematical Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.2 Infinities and Not-a-number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.3 Elementary Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.4 Small integer powers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.5 Testing the Sign of Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.6 Testing for Odd and Even Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.7 Maximum and Minimum functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.8 Approximate Comparison of Floating Point Numbers . . . . . . . . . . 19
ii
5 Complex Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.1 Representation of complex numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.2 Properties of complex numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.3 Complex arithmetic operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.4 Elementary Complex Fun ctions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.5 Complex Trigonometric Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.6 Inverse Complex Trigonometric Functions . . . . . . . . . . . . . . . . . . . . . 24
5.7 Complex Hyperbolic Fun ctions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.8 Inverse Complex Hyperbolic Functions . . . . . . . . . . . . . . . . . . . . . . . . 26
5.9 References and Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6 Polynomials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.1 Polynomial E valuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.2 Divided Difference Representation of Polynomials. . . . . . . . . . . . . . 28
6.3 Quadratic Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.4 Cubic Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.5 General Polynomial Equations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.6 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.7 References and Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
7 Special Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.1 Usage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.2 The gsl
sf result struct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.3 Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
7.4 Airy Functions and Derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
7.4.1 Airy Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
7.4.2 Derivatives of Airy Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
7.4.3 Zeros of Airy Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
7.4.4 Zeros of Derivatives of Airy Functions . . . . . . . . . . . . . . . . . . . . 36
7.5 Bessel Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
7.5.1 Regular Cylindr ical Bessel Functions . . . . . . . . . . . . . . . . . . . . . 36
7.5.2 Irregular Cylindr ical Bessel Functions. . . . . . . . . . . . . . . . . . . . . 37
7.5.3 Regular Modified Cylindrical Bessel Functions . . . . . . . . . . . . 37
7.5.4 Irregular Modified Cylindrical Bessel Functions . . . . . . . . . . . 38
7.5.5 Regular Sph er ical Bessel Functions . . . . . . . . . . . . . . . . . . . . . . . 39
7.5.6 Irregular Sph er ical Bessel Functions . . . . . . . . . . . . . . . . . . . . . . 40
7.5.7 Regular Modified Spherical Bessel Functions . . . . . . . . . . . . . . 40
7.5.8 Irregular Modified Spherical Bessel Functions . . . . . . . . . . . . . 41
7.5.9 Regular Bessel Function—Fractional Order . . . . . . . . . . . . . . . 42
7.5.10 Irregular Bessel Fun ctions—Fractional Order . . . . . . . . . . . . 42
7.5.11 Regular Modified Bessel Functions—Fractional Order . . . . 42
7.5.12 Irregular Modified Bessel Functions—Fractional Order . . . 42
7.5.13 Zeros of Regular Bessel Functions . . . . . . . . . . . . . . . . . . . . . . . 43
7.6 Clausen Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
7.7 Coulomb Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
7.7.1 Normalized Hydrogenic Bound States. . . . . . . . . . . . . . . . . . . . . 44
7.7.2 Coulomb Wave Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
iii
7.7.3 Coulomb Wave Function Normalization Constant . . . . . . . . . 45
7.8 Coupling Coefficients. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7.8.1 3-j Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7.8.2 6-j Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
7.8.3 9-j Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
7.9 Dawson Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
7.10 Debye Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.11 Dilogarithm. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.11.1 Real Argument. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.11.2 Complex Argument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.12 Elementary Operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.13 Elliptic Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.13.1 Definition of Legendre Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.13.2 Definition of Carlson Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
7.13.3 Legendre Form of Complete Elliptic Integrals . . . . . . . . . . . . 49
7.13.4 Legendre Form of Incomplete Elliptic Integrals . . . . . . . . . . 49
7.13.5 Carlson Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
7.14 Elliptic Functions (Jacobi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
7.15 Error Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
7.15.1 Error Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
7.15.2 Complementary Error Function . . . . . . . . . . . . . . . . . . . . . . . . . 51
7.15.3 Log Complementary Error Function . . . . . . . . . . . . . . . . . . . . . 51
7.15.4 Probability functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
7.16 Exponential Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
7.16.1 Exponential Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
7.16.2 Relative Exponential Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 52
7.16.3 Exponentiation With Err or Estimate . . . . . . . . . . . . . . . . . . . . 53
7.17 Exponential Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
7.17.1 Exponential Integral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
7.17.2 Ei(x) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
7.17.3 Hyperbolic Integrals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
7.17.4 Ei
3(x) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
7.17.5 Trigonometric Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
7.17.6 Arctangent Integral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
7.18 Fermi-Dirac Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
7.18.1 Complete Fermi-Dirac Integrals . . . . . . . . . . . . . . . . . . . . . . . . . 55
7.18.2 Incomplete Fermi-Dirac Integrals . . . . . . . . . . . . . . . . . . . . . . . . 56
7.19 Gamma and Beta Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
7.19.1 Gamma Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
7.19.2 Factorials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
7.19.3 Pochhammer Symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
7.19.4 Incomplete Gamma Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
7.19.5 Beta Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
7.19.6 Incomplete Beta Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
7.20 Gegenbauer Fu nctions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
7.21 Hypergeometric Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
7.22 Laguerre Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
7.23 Lambert W Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
剩余629页未读,继续阅读
资源评论
boyunfeng
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于springboot+vue实现的在线考试系统+源代码+文档
- RTL8723DS 2022 版本 Linux驱动,android驱动 支持4.0-10x
- 要玩NDS的遊戲,必須要先下載三個bios檔案到你的檔案資料夾
- 各类型数据库4月排名,基于排名网站数据爬虫json结果
- 基于springboot+vue实现的在线考试系统+源代码+文档
- 淮北市杜集区人才补贴+生活补贴
- JAVA-JSP技术文档
- 课内实验02-决策表(共享单车月卡).docx
- 基于【React + Node+SpringBoot】疫情数据查看系统的设计与实现【源码+lw+部署+讲解】
- 基于【React + Node】云课堂系统设计与实现【源码+lw+部署+讲解】
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功