You are on page 1of 6

University of Bahrain

College of Information Technology


Department of Computer Engineering

ITCE 380: Numerical Analysis


Experiment #4: Secant Method

STUDENT’S NAME: Amna Azmat Raza Malik


STUDENT’S ID: 20161934
DATE OF SUBMISSION: 28 October 2018
AIM: The aim of this experiment is to get familiar with Secant method and to
use it in MATLAB software.
INTRODUCTION: In numerical analysis, the secant method is a root-finding
algorithm that uses a succession of roots of secant lines to better approximate a
root of a function f.

Procedure:
1) MATLAB was opened and the file “sekant.m” was
runned.

2) The seventh root of 30 with tolerance = 0.00001was


calculated.
.

3) Tthe function f(x) = x3 – 6x2 + 10x – 4 roots were calculated with tolerance =
0.00001
4) The root of f(x) = 3x cos(x) – 5e-x sin(x) + 4 with tolerance = 0.00001.

5) The forward biased diode current equation as a function of its voltage is as follows:
I = Is 𝑒40𝑉
Assume Is of the diode of the following circuit is 1 pA = 10-12 A, The the exact value of
V (within 0.001 tolerance) for the interval [0,1] using the following relation: I = (12 –
V) / 100 = Is 𝑒40𝑉 was calculated

5) The DC supply was changed from 12 V to 5 V.


CONCLUSION:
In this experiment we learnt how to apply secant method using Matlab
software. Also we compared the results of Matlab with our hand solution to
check the accuracy of it. Finally, we obtain a linear function and we had the
results very fast because all of the coefficients are linear.

You might also like