This
unit deals with user defined functions in
C++. Functions are procedures which augment
the main function of our program and can accomplish certain
tasks on their own and then transfer their results to the
main ( or to other functions) and/or output their results
to files or to the screen. They are in many ways similar to
the functions of the mathematical library, but there is more
to them. Functions with a single return, multiple returns
and no return will be discussed .
In
this unit we will also learn how to approximate roots of nonlinear
and transcendental equations .
There are many root-finding methods. Some of them are
of the "bracketing type" some are not. Considering single
equations we may mention the techniques: Bisection, False
Position, Van Wijngaarden-Dekker-Brent method, Newton-Raphson,
Secant, Deflation of Polynomials, Muller's Method, Jenkins-Traub,
Lehmer-Schur method and many others.
We
all hope that some of our students will come up with their
own efficient methods when challenged with a particular problem.
In this unit we will discuss Bisection, Newton's, and Secant
methods
|