CL314 Assignment 1

You might also like

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

Department of Chemical Engineering

Indian Institute of Technology Guwahati


Semester: Jan 2020 to April 2020

CL314: Numerical Methods in Chemical Engineering

Assignment 1: (Due Date: 27/01/2020)

Full Marks: 60

[For the MATLAB program Q3 and Q4 (highlighted in yellow) you have to make a folder
called “Assignment 1” in the computer in the lab. Write the script in MATLAB editor and
save it as A1Q3 and A1Q4 respectively. In the starting of the program by “commenting”,
you should put your name and roll number]

Q1. Write down the number of significant digits in the following numbers: (5)

a) 53024
b) -2653
c) 0.02
d) 0.010
e) 0.003

Q2. Consider the following equations: (10)

2x + 4y + z = 12
x + 3y – 3z = 1
x + y + 4z = 8

Reduce the set of equations in the row echelon form and find out the rank of the coefficient
matrix (A) and the corresponding augmented matrix (A│b). Also, find out the type of the
solution of the sets of the equations given.

Q3. Maclaurin expansion of ex is given by: (5+10)

𝑥2 𝑥3 𝑥4
𝑒𝑥 = 1 + 𝑥 +
+ + +⋯
2! 3! 4!
Write an algorithm for MATLAB program to evaluate the value of ex upto a specific term
containing x n.

Write the program in MATLAB and calculate the value of e 5 considering the order of the
term considered i.e. n= 5, 10, 30 and give the answer upto 4 decimal point.
Q4. Write an algorithm for the addition of the two matrix A and B and store the value in
another matrix C. (5+10)
1 4 1 3 0 5
𝐴 = [2 −4 6] 𝐵 = [−9 5 2]
2 −1 3 6 8 1

Write the program in MATLAB to calculate C.

Q5. A particle in a force field is moving with velocity predicted by a quadratic polynomial
as follows: (5+10)
2
𝑣(𝑡) = 𝑎𝑡 + 𝑏𝑡 + 𝑐
The following data are obtained:
t [s] 1 2 3
v(t) [m/s] 6 13 24

Construct a set of equations in matrix form to find the value of a, b and c.

Find the value of the “a”, “b and “c”, by solving the equations by Gauss Elimination
method. Show each step.

You might also like