|
|
|
1 | (20) |
|
Elementary input and output |
|
|
1 | (4) |
|
|
|
1 | (2) |
|
|
|
3 | (1) |
|
|
|
4 | (1) |
|
|
|
5 | (1) |
|
|
|
6 | (2) |
|
|
|
6 | (1) |
|
|
|
7 | (1) |
|
|
|
8 | (1) |
|
|
|
8 | (3) |
|
|
|
9 | (1) |
|
|
|
9 | (1) |
|
|
|
10 | (1) |
|
|
|
11 | (5) |
|
|
|
13 | (1) |
|
|
|
13 | (1) |
|
|
|
14 | (1) |
|
|
|
14 | (2) |
|
|
|
16 | (1) |
|
|
|
17 | (2) |
|
|
|
17 | (1) |
|
|
|
18 | (1) |
|
|
|
18 | (1) |
|
|
|
19 | (1) |
|
Expressions, statements and functions |
|
|
20 | (35) |
|
|
|
21 | (4) |
|
|
|
21 | (1) |
|
|
|
22 | (1) |
|
|
|
22 | (1) |
|
|
|
22 | (1) |
|
|
|
23 | (1) |
|
|
|
23 | (1) |
|
|
|
23 | (2) |
|
|
|
25 | (3) |
|
Declaration and initialization |
|
|
25 | (1) |
|
|
|
26 | (1) |
|
|
|
26 | (1) |
|
Increments and decrements |
|
|
26 | (2) |
|
|
|
28 | (2) |
|
|
|
29 | (1) |
|
|
|
30 | (1) |
|
|
|
30 | (7) |
|
|
|
30 | (3) |
|
|
|
33 | (1) |
|
|
|
34 | (1) |
|
|
|
34 | (1) |
|
break and continue statements |
|
|
34 | (1) |
|
|
|
35 | (1) |
|
|
|
36 | (1) |
|
|
|
37 | (9) |
|
|
|
41 | (1) |
|
Passing arguments to functions |
|
|
42 | (1) |
|
|
|
42 | (1) |
|
|
|
43 | (1) |
|
|
|
44 | (1) |
|
Overloading function names |
|
|
44 | (1) |
|
|
|
45 | (1) |
|
|
|
46 | (3) |
|
|
|
49 | (1) |
|
|
|
50 | (1) |
|
|
|
51 | (1) |
|
|
|
52 | (3) |
|
Errors, theorems and speed |
|
|
55 | (14) |
|
|
|
55 | (1) |
|
|
|
55 | (2) |
|
|
|
57 | (1) |
|
|
|
58 | (1) |
|
Conditioning and stability |
|
|
59 | (1) |
|
|
|
60 | (1) |
|
|
|
60 | (2) |
|
|
|
62 | (1) |
|
Reciprocals without division |
|
|
63 | (1) |
|
|
|
64 | (1) |
|
|
|
65 | (3) |
|
|
|
68 | (1) |
|
Roots of non-linear equations |
|
|
69 | (25) |
|
|
|
69 | (5) |
|
Simple recursive procedure |
|
|
69 | (1) |
|
Refined recursive procedure |
|
|
70 | (3) |
|
|
|
73 | (1) |
|
|
|
74 | (2) |
|
|
|
76 | (1) |
|
|
|
77 | (2) |
|
|
|
79 | (2) |
|
Choice of fixed point function |
|
|
81 | (1) |
|
|
|
82 | (1) |
|
|
|
83 | (1) |
|
|
|
84 | (1) |
|
|
|
85 | (3) |
|
|
|
86 | (1) |
|
|
|
87 | (1) |
|
Maxima and minima of functions |
|
|
88 | (3) |
|
|
|
91 | (3) |
|
|
|
94 | (26) |
|
|
|
94 | (10) |
|
|
|
95 | (1) |
|
|
|
96 | (3) |
|
|
|
99 | (1) |
|
|
|
100 | (3) |
|
Complex roots of quadratic equations |
|
|
103 | (1) |
|
|
|
104 | (9) |
|
|
|
104 | (1) |
|
|
|
105 | (2) |
|
|
|
107 | (1) |
|
|
|
108 | (2) |
|
|
|
110 | (2) |
|
|
|
112 | (1) |
|
|
|
112 | (1) |
|
|
|
113 | (2) |
|
|
|
115 | (4) |
|
|
|
116 | (1) |
|
|
|
117 | (1) |
|
|
|
118 | (1) |
|
|
|
119 | (1) |
|
Derived classes and streams |
|
|
120 | (25) |
|
|
|
120 | (5) |
|
|
|
121 | (3) |
|
The derived class complex |
|
|
124 | (1) |
|
|
|
125 | (2) |
|
|
|
127 | (4) |
|
|
|
131 | (8) |
|
|
|
131 | (1) |
|
|
|
132 | (1) |
|
|
|
133 | (1) |
|
Formatted input and output |
|
|
133 | (4) |
|
|
|
137 | (2) |
|
|
|
139 | (6) |
|
|
|
141 | (2) |
|
|
|
143 | (2) |
|
|
|
145 | (26) |
|
|
|
145 | (6) |
|
|
|
146 | (2) |
|
|
|
148 | (2) |
|
The greatest common divisor |
|
|
150 | (1) |
|
|
|
151 | (9) |
|
|
|
152 | (5) |
|
|
|
157 | (1) |
|
|
|
158 | (2) |
|
|
|
160 | (2) |
|
|
|
161 | (1) |
|
|
|
162 | (1) |
|
|
|
162 | (9) |
|
Linear congruence generators |
|
|
163 | (1) |
|
|
|
164 | (2) |
|
|
|
166 | (2) |
|
|
|
168 | (1) |
|
|
|
169 | (1) |
|
Example---Monte Carlo integration |
|
|
170 | (1) |
|
|
|
171 | (17) |
|
|
|
173 | (3) |
|
|
|
176 | (1) |
|
|
|
177 | (11) |
|
|
|
179 | (3) |
|
|
|
182 | (1) |
|
|
|
183 | (4) |
|
|
|
187 | (1) |
|
|
|
188 | (16) |
|
|
|
188 | (7) |
|
|
|
195 | (5) |
|
Operations of linear algebra |
|
|
200 | (4) |
|
Direct solution of linear equations |
|
|
204 | (23) |
|
|
|
205 | (3) |
|
|
|
205 | (2) |
|
|
|
207 | (1) |
|
|
|
208 | (5) |
|
|
|
208 | (2) |
|
The case of the vanishing determinant |
|
|
210 | (1) |
|
Minimizing the arithmetic |
|
|
210 | (1) |
|
|
|
211 | (1) |
|
|
|
212 | (1) |
|
|
|
212 | (1) |
|
|
|
213 | (2) |
|
|
|
215 | (5) |
|
|
|
215 | (2) |
|
|
|
217 | (1) |
|
|
|
218 | (2) |
|
|
|
220 | (2) |
|
|
|
222 | (3) |
|
|
|
225 | (2) |
|
Errors in matrix manipulation |
|
|
227 | (9) |
|
|
|
227 | (3) |
|
|
|
230 | (1) |
|
|
|
231 | (3) |
|
|
|
233 | (1) |
|
|
|
234 | (2) |
|
Iterative solutions of systems of equations |
|
|
236 | (14) |
|
|
|
236 | (3) |
|
|
|
239 | (2) |
|
Jacobi and Seidel compared |
|
|
241 | (1) |
|
Successive over-relaxation |
|
|
242 | (1) |
|
|
|
243 | (3) |
|
Roots of systems of non-linear equations |
|
|
246 | (4) |
|
Matrix eigenvalue problems |
|
|
250 | (30) |
|
|
|
251 | (4) |
|
|
|
252 | (2) |
|
Eigenvalue stability and errors of computation |
|
|
254 | (1) |
|
|
|
255 | (6) |
|
|
|
261 | (2) |
|
|
|
263 | (5) |
|
|
|
268 | (12) |
|
Reduction to tridiagonal form |
|
|
269 | (4) |
|
|
|
273 | (7) |
|
Interpolation and data fitting |
|
|
280 | (25) |
|
|
|
281 | (8) |
|
|
|
282 | (1) |
|
|
|
283 | (3) |
|
|
|
286 | (2) |
|
|
|
288 | (1) |
|
|
|
289 | (1) |
|
Cubic spline piecewise interpolation |
|
|
289 | (4) |
|
|
|
290 | (2) |
|
Lagrange polynomial and cubic spline compared |
|
|
292 | (1) |
|
|
|
293 | (4) |
|
Least squares approximation |
|
|
294 | (2) |
|
|
|
296 | (1) |
|
|
|
297 | (8) |
|
|
|
299 | (3) |
|
|
|
302 | (3) |
|
|
|
305 | (29) |
|
|
|
305 | (5) |
|
|
|
310 | (11) |
|
|
|
311 | (3) |
|
|
|
314 | (2) |
|
Opening and closing graphics mode |
|
|
316 | (1) |
|
|
|
316 | (2) |
|
|
|
318 | (2) |
|
|
|
320 | (1) |
|
The complex plane: quadratic Julia sets |
|
|
321 | (4) |
|
Dynamic use of colour: the Mandelbrot set |
|
|
325 | (3) |
|
|
|
328 | (6) |
|
Differentiation and integration |
|
|
334 | (23) |
|
|
|
334 | (4) |
|
|
|
338 | (1) |
|
|
|
339 | (4) |
|
|
|
343 | (3) |
|
|
|
346 | (1) |
|
|
|
347 | (2) |
|
|
|
349 | (5) |
|
|
|
354 | (1) |
|
|
|
355 | (2) |
|
|
|
357 | (26) |
|
|
|
357 | (2) |
|
Zeros of orthogonal polynomials |
|
|
359 | (1) |
|
|
|
360 | (4) |
|
|
|
360 | (2) |
|
|
|
362 | (1) |
|
|
|
363 | (1) |
|
|
|
364 | (1) |
|
Approximation of functions |
|
|
364 | (5) |
|
|
|
366 | (1) |
|
|
|
366 | (2) |
|
|
|
368 | (1) |
|
|
|
369 | (3) |
|
|
|
372 | (11) |
|
|
|
374 | (1) |
|
|
|
375 | (1) |
|
Nodes and weights combined |
|
|
376 | (4) |
|
|
|
380 | (3) |
|
|
|
383 | (30) |
|
|
|
383 | (2) |
|
Stability and conditioning |
|
|
385 | (2) |
|
|
|
387 | (4) |
|
|
|
391 | (1) |
|
|
|
392 | (7) |
|
|
|
395 | (1) |
|
|
|
396 | (3) |
|
|
|
399 | (10) |
|
|
|
399 | (5) |
|
|
|
404 | (5) |
|
Predictor-corrector methods |
|
|
409 | (2) |
|
|
|
411 | (2) |
|
More about differential equations |
|
|
413 | (25) |
|
Systems of ordinary differential equations |
|
|
413 | (5) |
|
|
|
414 | (1) |
|
|
|
415 | (3) |
|
Second-order initial value problems |
|
|
418 | (2) |
|
Second-order boundary value problems |
|
|
420 | (8) |
|
|
|
420 | (3) |
|
The linear finite difference method |
|
|
423 | (3) |
|
Extrapolated linear finite difference method |
|
|
426 | (1) |
|
The non-linear finite difference method |
|
|
426 | (2) |
|
|
|
428 | (3) |
|
|
|
431 | (2) |
|
Partial differential equations |
|
|
433 | (5) |
|
Recursive data types---lists |
|
|
438 | (33) |
|
|
|
441 | (7) |
|
|
|
448 | (3) |
|
|
|
451 | (10) |
|
|
|
461 | (10) |
|
Elements of Fourier analysis |
|
|
471 | (10) |
|
|
|
471 | (2) |
|
|
|
473 | (2) |
|
Discrete Fourier transforms |
|
|
475 | (1) |
|
|
|
476 | (5) |
| Addendum Programming in Windows |
|
481 | (52) |
|
A1 The Window classes TApplication and TWindow |
|
|
483 | (4) |
|
A2 The class TWindow and the function Paint |
|
|
487 | (4) |
|
A3 Programming mouse buttons |
|
|
491 | (1) |
|
|
|
492 | (2) |
|
A5 A multiple document interface |
|
|
494 | (7) |
|
|
|
501 | (10) |
|
|
|
511 | (4) |
|
|
|
515 | (1) |
|
A9 Ordinary differential equations |
|
|
516 | (7) |
|
A10 Two simultaneous differential equations |
|
|
523 | (10) |
| Bibliography |
|
533 | (2) |
| Appendix A standard.h |
|
535 | (2) |
| Appendix B restring.h |
|
537 | (1) |
| Appendix C rational.h |
|
538 | (1) |
| Appendix D random.h |
|
539 | (1) |
| Appendix E vecmat.h |
|
540 | (2) |
| Appendix F stdgraph.h |
|
542 | (2) |
| Appendix G list.h |
|
544 | (2) |
| Appendix H screen.h |
|
546 | (3) |
| Index |
|
549 | |