关于C的数学算法的库,推荐一个专业的。

发信人: CtrlF (孤竹王子), 信区: CPlusPlus
标 题: 关于C的数学算法的库,推荐一个专业的。
发信站: BBS 水木清华站 (Wed May 12 20:33:44 2004), 站内

很多C++类库都提供了诸如矩阵这样的运算库,
这里介绍一个C的库gsl
http://www.gnu.org/software/gsl/
http://www.gnu.org/software/gsl/manual/gsl-ref.ps.gz
http://www.gnu.org/software/gsl/manual/gsl-ref_toc.html
你看它的帮助文档,就可以知道这是一个非常专业的C库,甚至可一个和matlab媲美。
因为是源码发布,win下也有,google就是了,我曾经找到过。
下面是它的目录
* Introduction
o Routines available in GSL
o GSL is Free Software
o Obtaining GSL
o No Warranty
o Reporting Bugs
o Further Information
* Using the library
o An Example Program
o ANSI C Compliance
o Compiling and Linking
o Shared Libraries
o Inline functions
o Long double
o Portability functions
o Alternative optimized functions
o Support for different numeric types
o Compatibility with C++
o Aliasing of arrays
o Thread-safety
o Code Reuse
* Error Handling
o Error Reporting
o Error Codes
o Error Handlers
o Using GSL error reporting in your own functions
o Examples
* Mathematical Functions
o Mathematical Constants
o Infinities and Not-a-number
o Elementary Functions
o Small integer powers
o Testing the Sign of Numbers
o Testing for Odd and Even Numbers
o Maximum and Minimum functions
o Approximate Comparison of Floating Point Numbers
* Complex Numbers
o Complex numbers
o Properties of complex numbers
o Complex arithmetic operators
o Elementary Complex Functions
o Complex Trigonometric Functions
o Inverse Complex Trigonometric Functions
o Complex Hyperbolic Functions
o Inverse Complex Hyperbolic Functions
o References and Further Reading
* Polynomials
o Polynomial Evaluation
o Divided Difference Representation of Polynomials
o Quadratic Equations
o Cubic Equations
o General Polynomial Equations
o Examples
o References and Further Reading
* Special Functions
o Usage
o The gsl_sf_result struct
o Modes
o Airy Functions and Derivatives
+ Airy Functions
+ Derivatives of Airy Functions
+ Zeros of Airy Functions
+ Zeros of Derivatives of Airy Functions
o Bessel Functions
+ Regular Cylindrical Bessel Functions
+ Irregular Cylindrical Bessel Functions
+ Regular Modified Cylindrical Bessel Functions
+ Irregular Modified Cylindrical Bessel Functions
+ Regular Spherical Bessel Functions
+ Irregular Spherical Bessel Functions
+ Regular Modified Spherical Bessel Functions
+ Irregular Modified Spherical Bessel Functions
+ Regular Bessel Function – Fractional Order
+ Irregular Bessel Functions – Fractional Order
+ Regular Modified Bessel Functions – Fractional Order
+ Irregular Modified Bessel Functions – Fractional Order
+ Zeros of Regular Bessel Functions
o Clausen Functions
o Coulomb Functions
+ Normalized Hydrogenic Bound States
+ Coulomb Wave Functions
+ Coulomb Wave Function Normalization Constant
o Coupling Coefficients
+ 3-j Symbols
+ 6-j Symbols
+ 9-j Symbols
o Dawson Function
o Debye Functions
o Dilogarithm
+ Real Argument
+ Complex Argument
o Elementary Operations
o Elliptic Integrals
+ Definition of Legendre Forms
+ Definition of Carlson Forms
+ Legendre Form of Complete Elliptic Integrals
+ Legendre Form of Incomplete Elliptic Integrals
+ Carlson Forms
o Elliptic Functions (Jacobi)
o Error Functions
+ Error Function
+ Complementary Error Function
+ Log Complementary Error Function
+ Probability functions
o Exponential Functions
+ Exponential Function
+ Relative Exponential Functions
+ Exponentiation With Error Estimate
o Exponential Integrals
+ Exponential Integral
+ Ei(x)
+ Hyperbolic Integrals
+ Ei_3(x)
+ Trigonometric Integrals
+ Arctangent Integral
o Fermi-Dirac Function
+ Complete Fermi-Dirac Integrals
+ Incomplete Fermi-Dirac Integrals
o Gamma Function
o Gegenbauer Functions
o Hypergeometric Functions
o Laguerre Functions
o Lambert W Functions
o Legendre Functions and Spherical Harmonics
+ Legendre Polynomials
+ Associated Legendre Polynomials and Spherical Harmonics
+ Conical Functions
+ Radial Functions for Hyperbolic Space
o Logarithm and Related Functions
o Power Function
o Psi (Digamma) Function
+ Digamma Function
+ Trigamma Function
+ Polygamma Function
o Synchrotron Functions
o Transport Functions
o Trigonometric Functions
+ Circular Trigonometric Functions
+ Trigonometric Functions for Complex Arguments
+ Hyperbolic Trigonometric Functions
+ Conversion Functions
+ Restriction Functions
+ Trigonometric Functions With Error Estimates
o Zeta Functions
+ Riemann Zeta Function
+ Hurwitz Zeta Function
+ Eta Function
o Examples
o References and Further Reading
* Vectors and Matrices
o Data types
o Blocks
+ Block allocation
+ Reading and writing blocks
+ Example programs for blocks
o Vectors
+ Vector allocation
+ Accessing vector elements
+ Initializing vector elements
+ Reading and writing vectors
+ Vector views
+ Copying vectors
+ Exchanging elements
+ Vector operations
+ Finding maximum and minimum elements of vectors
+ Vector properties
+ Example programs for vectors
o Matrices
+ Matrix allocation
+ Accessing matrix elements
+ Initializing matrix elements
+ Reading and writing matrices
+ Matrix views
+ Creating row and column views
+ Copying matrices
+ Copying rows and columns
+ Exchanging rows and columns
+ Matrix operations
+ Finding maximum and minimum elements of matrices
+ Matrix properties
+ Example programs for matrices
o References and Further Reading
* Permutations
o The Permutation struct
o Permutation allocation
o Accessing permutation elements
o Permutation properties
o Permutation functions
o Applying Permutations
o Reading and writing permutations
o Permutations in Cyclic Form
o Examples
o References and Further Reading
* Combinations
o The Combination struct
o Combination allocation
o Accessing combination elements
o Combination properties
o Combination functions
o Reading and writing combinations
o Examples
o References and Further Reading
* Sorting
o Sorting objects
o Sorting vectors
o Selecting the k smallest or largest elements
o Computing the rank
o Examples
o References and Further Reading
* BLAS Support
o GSL BLAS Interface
+ Level 1
+ Level 2
+ Level 3
o Examples
o References and Further Reading
* Linear Algebra
o LU Decomposition
o QR Decomposition
o QR Decomposition with Column Pivoting
o Singular Value Decomposition
o Cholesky Decomposition
o Tridiagonal Decomposition of Real Symmetric Matrices
o Tridiagonal Decomposition of Hermitian Matrices
o Bidiagonalization
o Householder Transformations
o Householder solver for linear systems
o Tridiagonal Systems
o Examples
o References and Further Reading
* Eigensystems
o Real Symmetric Matrices
o Complex Hermitian Matrices
o Sorting Eigenvalues and Eigenvectors
o Examples
o References and Further Reading
* Fast Fourier Transforms (FFTs)
o Mathematical Definitions
o Overview of complex data FFT

s< br />o Radix-2 FFT routines for complex data
o Mixed-radix FFT routines for complex data
o Overview of real data FFTs
o Radix-2 FFT routines for real data
o Mixed-radix FFT routines for real data
o References and Further Reading
* Numerical Integration
o Introduction
o QNG non-adaptive Gauss-Kronrod integration
o QAG adaptive integration
o QAGS adaptive integration with singularities
o QAGP adaptive integration with known singular points
o QAGI adaptive integration on infinite intervals
o QAWC adaptive integration for Cauchy principal values
o QAWS adaptive integration for singular functions
o QAWO adaptive integration for oscillatory functions
o QAWF adaptive integration for Fourier integrals
o Error codes
o Examples
o References and Further Reading
* Random Number Generation
o General comments on random numbers
o The Random Number Generator Interface
o Random number generator initialization
o Sampling from a random number generator
o Auxiliary random number generator functions
o Random number environment variables
o Copying random number generator state
o Reading and writing random number generator state
o Random number generator algorithms
o Unix random number generators
o Other random number generators
o Performance
o Examples
o References and Further Reading
o Acknowledgements
* Quasi-Random Sequences
o Quasi-random number generator initialization
o Sampling from a quasi-random number generator
o Auxiliary quasi-random number generator functions
o Saving and resorting quasi-random number generator state
o Quasi-random number generator algorithms
o Examples
o References
* Random Number Distributions
o Introduction
o The Gaussian Distribution
o The Gaussian Tail Distribution
o The Bivariate Gaussian Distribution
o The Exponential Distribution
o The Laplace Distribution
o The Exponential Power Distribution
o The Cauchy Distribution
o The Rayleigh Distribution
o The Rayleigh Tail Distribution
o The Landau Distribution
o The Levy alpha-Stable Distributions
o The Levy skew alpha-Stable Distribution
o The Gamma Distribution
o The Flat (Uniform) Distribution
o The Lognormal Distribution
o The Chi-squared Distribution
o The F-distribution
o The t-distribution
o The Beta Distribution
o The Logistic Distribution
o The Pareto Distribution
o The Spherical Distribution (2D & 3D)
o The Weibull Distribution
o The Type-1 Gumbel Distribution
o The Type-2 Gumbel Distribution
o The Dirichlet Distribution
o General Discrete Distributions
o The Poisson Distribution
o The Bernoulli Distribution
o The Binomial Distribution
o The Multinomial Distribution
o The Negative Binomial Distribution
o The Pascal Distribution
o The Geometric Distribution
o The Hypergeometric Distribution
o The Logarithmic Distribution
o Shuffling and Sampling
o Examples
o References and Further Reading
* Statistics
o Mean, Standard Deviation and Variance
o Absolute deviation
o Higher moments (skewness and kurtosis)
o Autocorrelation
o Covariance
o Weighted Samples
o Maximum and Minimum values
o Median and Percentiles
o Examples
o References and Further Reading
* Histograms
o The histogram struct
o Histogram allocation
o Copying Histograms
o Updating and accessing histogram elements
o Searching histogram ranges
o Histogram Statistics
o Histogram Operations
o Reading and writing histograms
o Resampling from histograms
o The histogram probability distribution struct
o Example programs for histograms
o Two dimensional histograms
o The 2D histogram struct
o 2D Histogram allocation
o Copying 2D Histograms
o Updating and accessing 2D histogram elements
o Searching 2D histogram ranges
o 2D Histogram Statistics
o 2D Histogram Operations
o Reading and writing 2D histograms
o Resampling from 2D histograms
o Example programs for 2D histograms
* N-tuples
o The ntuple struct
o Creating ntuples
o Opening an existing ntuple file
o Writing ntuples
o Reading ntuples
o Closing an ntuple file
o Histogramming ntuple values
o Examples
o References and Further Reading
* Monte Carlo Integration
o Interface
o PLAIN Monte Carlo
o MISER
o VEGAS
o Examples
o References and Further Reading
* Simulated Annealing
o Simulated Annealing algorithm
o Simulated Annealing functions
o Examples
+ Trivial example
+ Traveling Salesman Problem
* Ordinary Differential Equations
o Defining the ODE System
o Stepping Functions
o Adaptive Step-size Control
o Evolution
o Examples
o References and Further Reading
* Interpolation
o Introduction
o Interpolation Functions
o Interpolation Types
o Index Look-up and Acceleration
o Evaluation of Interpolating Functions
o Higher-level Interface
o Examples
o References and Further Reading
* Numerical Differentiation
o Functions
o Examples
o References and Further Reading
* Chebyshev Approximations
o The gsl_cheb_series struct
o Creation and Calculation of Chebyshev Series
o Chebyshev Series Evaluation
o Derivatives and Integrals
o Examples
o References and Further Reading
* Series Acceleration
o Acceleration functions
o Acceleration functions without error estimation
o Examples
o References and Further Reading
* Discrete Hankel Transforms
o Definitions
o Functions
o References and Further Reading
* One dimensional Root-Finding
o Overview
o Caveats
o Initializing the Solver
o Providing the function to solve
o Search Bounds and Guesses
o Iteration
o Search Stopping Parameters
o Root Bracketing Algorithms
o Root Finding Algorithms using Derivatives
o Examples
o References and Further Reading
* One dimensional Minimization
o Overview
o Caveats
o Initializing the Minimizer
o Providing the function to minimize
o Iteration
o Stopping Parameters
o Minimization Algorithms
o Examples
o References and Further Reading
* Multidimensional Root-Finding
o Overview
o Initializing the Solver
o Providing the function to solve
o Iteration
o Search Stopping Parameters
o Algorithms using Derivatives
o Algorithms without Derivatives
o Examples
o References and Further Reading
* Multidimensional Minimization
o Overview
o Caveats
o Initializing the Multidimensional Minimizer
o Providing a function to minimize
o Iteration
o Stopping Criteria
o Algorithms
o Examples
o References and Further Reading
* Least-Squares Fitting
o Linear regression
o Linear fitting without a constant term
o Multi-parameter fitting
o Examples
o References and Further Reading
* Nonlinear Least-Squares Fitting
o Overview
o Initializing the Solver
o Providing the Function to be Minimized
o Iteration
o Search Stopping Parameters
o Minimization Algorithms using Derivatives
o Minimization Algorithms without Derivatives
o Computing the covariance matrix of best fit parameters
o Examples
o References and Further Reading
* Physical Constants
o Fundamental Constants
o Astronomy and Astrophysics
o Atomic and Nuclear Physics
o Measurement of Time
o Imperial Units
o Nautical Units
o Printers Units
o Volume
o Mass and Weight
o Thermal Energy and Power
o Pressure
o Viscosity
o Light and Illumination
o Radioactivity
o Force and Energy
o Prefixes
o Examples
o References and Further Reading
* IEEE floating-point arithmetic
o Representation of floating point numbers
o Setting up your IEEE environment
o References and Further Reading
* Debugging Numerical Programs
o Using gdb
o Examining floating point registers
o Handling floating point exceptions
o GCC warning options for numerical programs
o References and Further Reading
* Contributors to GSL
* Autoconf Macros
* GSL CBLAS Library
o Level 1
o Level 2
o Level 3
o Examples
* Free Software Needs Free Documentation
* GNU General Public License
o Preamble
o Appendix: How to Apply These Terms to Your New Programs
* GNU Free Documentation License
o ADDENDUM: How to use this License for your documents
* Function Index
* Variable Index
* Type Index
* Concept Index

※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.77.*]

作者: 投稿者(Guest)

本账号专门用于发表“转载资料”以及读者的投稿

2 thoughts on “关于C的数学算法的库,推荐一个专业的。

    • Leniy

      好多都用不到的。我现在已经基本不用C/C++了,大爱python和php

发表评论

电子邮件地址不会被公开。 必填项已用*标注