You are on page 1of 9

ITCE 380: Numerical Analysis

Experiment #5: Newton-Raphson Method

STUDENT’S NAME: Amna Azmat Raza Malik


STUDENT’S ID: 20161934
DATE OF SUBMISSION: 8 November 2018
AIM: The aim of this experiment is to get familiar with the Newton Raphson
Method and how to apply it in MATLAB software.
INTRODUCTION: In numerical analysis, Newton's method (also known as
the Newton–Raphson method), named after Isaac Newton and Joseph Raphson, is
a method for finding successively better approximations to the roots (or zeroes)
of a real-valued function. It is one example of a root-finding algorithm. The
method starts with a function f defined over the real numbers x, the
function's derivative f ′, and an initial guess x0 for a root of the function f. If the
function satisfies the assumptions made in the derivation of the formula and the
initial guess is close, then a better approximation x1 is

Geometrically, (x1, 0) is the intersection of the x-axis and the tangent of


the graph of f at (x0, f (x0)).
The process is repeated as

until a sufficiently accurate value is reached.


This algorithm is first in the class of Householder's methods, succeeded
by Halley's method. The method can also be extended to complex functions and
to systems of equations.
PROCEDURE:

1) The following was typed in MATLAB:


clear;clc
i = 0;
f = @(x) x^7-30;
fd = @(x) 7*(x^6);
x1= input ('x1=');
tol= input('tol=');
while abs(f(x1)) > tol
f1=f(x1);
f1d=fd(x1);
x2=x1-(f1/f1d);
x1=x2;
i =i +1;
fprintf ('%u %12.6f \n',i,x2)
end

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

3) The root of function f(x) = x3 – 6x2 + 10x – 4 was calculated with


tolerance = 0.00001
4) The root of function f(x) = 3x cos(x) – 5e-x sin(x) + 4 was calculated 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, Tthe
exact value of V (within 0.001 tolerance) for the interval [0,1] using the
following relation: I = (12 – V) / 100 = Is 𝑒40𝑉 was obtained as follows:
5) The DC supply was changed from 12V to 5V. The following result was
obtained:
CONCLUSION: In this experiment we got familiar with the Newton Raphson
Method and apply it in MATLAB. We were able to solve complex circuits
problems using this method in MATLAB.

You might also like