Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Department of Chemical Engineering

Indian Institute of Technology Guwahati


Semester: Jan 2020 to April 2020

CL314: Numerical Methods in Chemical Engineering

Assignment 5: (Due Date: 24/02/2020)

Full Marks: 40

[For the MATLAB program Q1 and Q3and so on (highlighted in yellow) you give the name
of the program as “yourname_A5Q1” and “yourname_A5Q3” respectively and upload the
program in the following link given. In the starting of the program by “commenting”, you
should put your name and roll number as well]
https://drive.google.com/drive/folders/1SjNkBslibcycscvWjbSnLhDKcem64Ys8?usp=sharing

Q1. Write a program for Newton Raphson method to find out complex conjugate roots of
the equation 𝑥 2 − 5𝑥 + 6 = 0. Find out the roots by giving initial guess as (0.2+i3) and
again as (4+i3). [10]

Q2. Using pen and paper solve the following set of nonlinear equations upto 3 iterations
by Newton Raphson method. (the initial guess is 0th iteration, so you have to do 3 more
iterations)

𝐹1 (𝑥1 , 𝑥2 ) = 𝑥13 + 3𝑥22 − 21 = 0

𝐹2 (𝑥1 , 𝑥2 ) = 𝑥13 + 2𝑥22 + 2 = 0

Assume initial guess as (1, -1) for (𝑥1 , 𝑥2 ). [15]

Q3. Following table shows the attendance vs marks obtained in the examination for 10
students:

Student Attendance Marks


No.
1 38 75
2 25 80
3 10 15
4 2 10
5 35 95
6 15 30
7 8 25
8 20 60
9 32 82
10 5 10

Find out the linear regression equation by least square method using pen and paper.

Also write a code for the same in MATLAB and validate your result. [5+10]

You might also like