Professional Documents
Culture Documents
Eed1005 Lab 3
Eed1005 Lab 3
Faculty of Engineering
Electrical and Electronics Engineering
Dokuz Eyl
ul Universitesi,
M
uhendislik Fak
ultesi
Elektrik Elektronik M
uhendisli
gi, 35160, Kaynaklar/Buca/IZM
IR
Laboratory Work
Task 1: A function is increasing at a point if the value of the first derivative of the function at
that point is greater than 0 or decreasing if the value of the first derivative of the function at that
point is less than 0. Write a program that determines whether a chosen function is increasing
or decreasing at a given point.The program displays a menu containing four functions and asks
the user to choose a function from the given menu and also a point at which the derivative will
be calculated. The program calculates the derivative at point a using the following formula,
df
f (a + h) f (a)
|x=a =
dx
h
Since in the definition of the derivative h approaches to 0, in the calculation h is taken as
0.000001, an infinitesimal value.
Flowchart of the program is required to be drawn.
Sample outputs of the program is given in Figure 2.