2019年4月30日 星期二

數值分析 Numerical Mathematics and Computing Fifth Edition

Numerical Mathematics and Computing
Fifth Edition

源自
https://web.ma.utexas.edu/CNA/NMC5/nmc5-C.html


Numerical Mathematics and Computing
Fifth Edition
Ward Cheney & David Kincaid
Sample C Codes


In the following table, each line/entry contains the program file name, the page number where it can be found in the textbook, and a brief description. Click on the program name to display the source code, which can be downloaded.
Chapter 1: Introduction
first.c6-7First programming experiment
double_first.c6-7First programming experiment (doulbe precision version)
pi.c8Simple code to illustrate double precision
Chapter 2: Number Representation and Errors
xsinx.c77-79Example of programming f(x) = x - sinx carefully
Chapter 3: Locating Roots of Equations
bisection.c94-95Bisection method
rec_bisection.c95-96Recursive version of bisection method
newton.c106-107Sample Newton method
secant.c127Secant method
Chapter 4: Interpolation and Numerical Differentiation
coef.c152-155Newton interpolation polynomial at equidistant pts
deriv.c185-186Derivative by center differences/Richardson extrapolation
Chapter 5: Numerical Integration
sums.c200Upper/lower sums experiment for an integral
trapezoid.c207Trapezoid rule experiment for an integral
romberg.c223-224Romberg arrays for three separate functions
Chapter 6: More on Numerical Integration
rec_simpson.c241Adaptive scheme for Simpson's rule
Chapter 7: Systems of Linear Equations
ngauss.c270-271Naive Gaussian elimination to solve linear systems
gauss.c285-287Gaussian elimination with scaled partial pivoting
tri.c301-302Solves tridiagonal systems
penta.c204Solves pentadiagonal linear systems
Chapter 8: More on Systems of Linear Equations
Chapter 9: Approximation by Spline Functions
spline1.c385Interpolates table using a first-degree spline function
spline3.c404-406Natural cubic spline function at equidistant points
spline2.c427-428Interpolates table using a quadratic B-spline function
schoenberg.c430-431Interpolates table using Schoenberg's process
Chapter 10: Ordinary Differential Equations
euler.c448-449Euler's method for solving an ODE
taylor.c451Taylor series method (order 4) for solving an ODE
rk4.c462-463Runge-Kutta method (order 4) for solving an IVP
rk45.c472-473Runge-Kutta-Fehlberg method for solving an IVP
mainrk45.c474Runge-Kutta-Fehlberg method for solving an IVP (main program)
rk45ad.c474Adaptive Runge-Kutta-Fehlberg method
Chapter 11: Systems of Ordinary Differential Equations
taylorsys.c489-491Taylor series method (order 4) for systems of ODEs
rk4sys.c491-493, 496Runge-Kutta method (order 4) for systems of ODEs
amrk.c510-513Adams-Moulton method for systems of ODEs
amrkad.c513Adaptive Adams-Moulton method for systems of ODEs
Chapter 12: Smoothing of Data and the Method of Least Squares
Chapter 13: Monte Carlo Methods and Simulation
test_random.c5652-563Example to compute, store, and print random numbers
coarse_check.c564Coarse check on the random-number generator
double_integral.c574-575Volume of a complicated 3D region by Monte Carlo
volume_region.c575-576Numerical value of integral over a 2D disk by Monte Carlo
cone.c576-576Ice cream cone example
loaded_die.c581Loaded die problem simulation
birthday.c583Birthday problem simulation
needle.c584Buffon's needle problem simulation
two_die.c585Two dice problem simulation
shielding.c586-587Neutron shielding problem simulation
Chapter 14: Boundary Value Problems for Ordinary Differential Equations
bvp1.c602-603Boundary value problem solved by discretization technique
bvp2.c605-606Boundary value problem solved by shooting method
Chapter 15: Partial Differential Equations
parabolic1.c618-619Parabolic partial differential equation problem
parabolic2.c620-621Parabolic PDE problem solved by Crank-Nicolson method
hyperbolic.c633-634Hyperbolic PDE problem solved by discretization
seidel.c642-645Elliptic PDE solved by discretization/ Gauss-Seidel method
Chapter 16: Minimization of Functions
Chapter 17: Linear Programming
Addditional programs can be found at the textbook's anonymous ftp site:
ftp://ftp.ma.utexas.edu/pub/cheney-kincaid/

[Home][Features][TOC][Purchase][ Sample Code][ Web][ Manuals][Errata][Links]


 Last updated: 5/20/2003

沒有留言:

張貼留言

2024_09 作業3 以Node-Red 為主

 2024_09 作業3  (以Node-Red 為主  Arduino 可能需要配合修改 ) Arduino 可能需要修改的部分 1)mqtt broker  2) 主題Topic (發行 接收) 3) WIFI ssid , password const char br...