NC A2
NC A2
ASSIGNMENT 2
SUBMISSION DATE: 28/10/2024
Q-1 A manufacturing company produces three types of components: diodes, (8)
capacitors, and integrated circuits (ICs). Each diode requires 5 units of
aluminum, 2 units of silicon, and 3 units of plastic. Each capacitor requires
3, 4, and 2 units of these materials respectively, and each IC requires 6, 1,
and 4 units of aluminum, silicon, and plastic respectively. The total
available material stock for this week consists of 1200 units of aluminum,
750 units of silicon, and 900 units of plastic. Construct a system of
equations representing the production and find how many diodes,
capacitors, and ICs should be manufactured.
Component Aluminum Silicon Plastic
Diodes 5 2 3
Capacitors 3 4 2
Integrated Circuits 6 1 4
(ICs)
(4+4)
Q-2 Find the smallest positive root of the nonlinear equation 2𝑥 3 + 𝑥 2 − 10𝑥 +
6 = 0 using Newton’s method. Perform the iteration manually for at least two
iterations. Additionally, provide the Python or MATLAB code to automate the
procedure.
Q-3 Find the order of convergence of False Position Method for finding the root of (7)
an equation 𝑓(𝑥) = 0. What is the importance of defining the order or rate of
convergence of a method?
Q-4 Determine if the following system of equations is diagonally dominant. If it is not, (2)
describe the steps required to make it diagonally dominant:
3𝑥1 + 6𝑥2 − 18𝑥3 = 5
127𝑥1 − 11𝑥2 + 2𝑥3 = 5
94𝑥1 + 8𝑥2 − 7𝑥3 = 5
Q-5 Using the Gauss-Seidel method, solve the following system of linear equations (5)
for𝑥1 , 𝑥2 and 𝑥3 ∶
𝑥1 + 2𝑥2 − 3𝑥3 = −12
𝑥1 − 5𝑥2 + 𝑥3 = 6
8𝑥1 + 2𝑥2 − 𝑥3 = 8
Perform two iterations manually, and then write a Python or MATLAB script to iterate
further until convergence is achieved.