0% found this document useful (0 votes)
52 views9 pages

ITCE 380 Lab Report 5

This document describes an experiment applying the Newton-Raphson method to find roots of functions using MATLAB. The aim was to get familiar with the Newton-Raphson method and how to apply it in MATLAB. The procedure involved using MATLAB code to iteratively calculate roots of various functions within a specified tolerance. Applications included finding the seventh root of 30, roots of polynomial functions, and solving a diode circuit equation to find the voltage for a given current. The conclusion states the experiment helped familiarize the student with applying the Newton-Raphson method in MATLAB to solve complex circuit problems.

Uploaded by

Amna Azmat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
52 views9 pages

ITCE 380 Lab Report 5

This document describes an experiment applying the Newton-Raphson method to find roots of functions using MATLAB. The aim was to get familiar with the Newton-Raphson method and how to apply it in MATLAB. The procedure involved using MATLAB code to iteratively calculate roots of various functions within a specified tolerance. Applications included finding the seventh root of 30, roots of polynomial functions, and solving a diode circuit equation to find the voltage for a given current. The conclusion states the experiment helped familiarize the student with applying the Newton-Raphson method in MATLAB to solve complex circuit problems.

Uploaded by

Amna Azmat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 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