|
Numerical mathematics
Here are some programs that can be useful. The
first one calculates the solution of an
arbitrary equation. It can use three methods to do this: The bisection method,
Newton's method or a hybrid method.
This is a nice example of using pointers to functions (and using a function as
an argument) as well.
The second one calculates the integral (or
primitive) of a function. The functions to do this are the extended trapezium
rule, the extended middle-point rule and Romberg extrapolation in combination
with one of the two.
|