0% found this document useful (0 votes)
87 views3 pages

Assignment 3 2021

The document is an assignment from a Numerical Methods course involving solving equations using various numerical methods like Newton-Raphson method, Secant method, and solving systems of linear equations using Gauss elimination, Gauss-Jordan, Jacobi, and Gauss-Seidel methods. It contains 20 questions asking students to find roots of equations, solve systems of linear and nonlinear equations numerically and analytically, determine consistency of systems, and solve word problems related to systems of equations.

Uploaded by

Prajot Patne
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views3 pages

Assignment 3 2021

The document is an assignment from a Numerical Methods course involving solving equations using various numerical methods like Newton-Raphson method, Secant method, and solving systems of linear equations using Gauss elimination, Gauss-Jordan, Jacobi, and Gauss-Seidel methods. It contains 20 questions asking students to find roots of equations, solve systems of linear and nonlinear equations numerically and analytically, determine consistency of systems, and solve word problems related to systems of equations.

Uploaded by

Prajot Patne
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

College of Engineering Pune

Numerical Methods using C++ ( MAPE 17009- )


T.Y.B. Tech. Semester VI (Production) 2020-21
Assignment# 3
by Dr. Yogita M. Mahatekar

Nweton-Raphson method, Secant method, Solving linear


system of equations
Write a program to find the root of f (x) = 0 using Newton-Raphson method for the
following. Create one pdf file only for all the solutions and upload it. One can also make
a practice of solving these examples manually till 3/4 iterations.
Q.1 Find the positive root of f (x) = 2x3 − 3x − 6 = 0 using Newton-Raphson method
correct up to five decimal places. (f (1) < 0 and f (2) > 0, hence root lies between 1
and 2. so the best possible choice of initial approximation for the root x0 can be any
value between 1 and 2 or 1 itself or even 2.) [Ans:1.7837]

Q.2 Find the positive root of x3 = 6x − 4 using Newton-Raphson method correct up to


five decimal placeswhich lies between 0 and 1. [Ans:0.7320]

Q.3 Find the real positive root of 3x − cos x − 1 = 0 using Newton-Raphson method
correct up to six decimal places which lies between 0 and 1. [Ans:0.6071]

Q.4 Find the real positive root of x = cos x using Newton-Raphson method. [Ans:0.7390]

Q.5 Find the real positive root of 4x = ex using Newton-Raphson method lying between
2 and 3. [Ans:2.1532]

Q.6 Find the real positive root of xex = 1 using Secant method lying between 0 and 1.
[Ans:0.5671]

Q.7 Find the real root of 4e−x sin x − 1 = 0 using both Secant method and Newton-
Raphson method lying between 0 and 0.5. [Ans:0.3706]

Q.8 Solve the following system of equations using all four methods viz. Gauss elimina-
tion and Gauss Jordan method, Jacobi’s method and by Gauss-Seidel method.

(a) 2x + 2y + z = 8; x − y = −2; y + z = 0. Ans: 2,4,-4


(b) x − y + z = 1; −3x + 2y − 3z = −6; 2x − 5y + 4z = 5.
(c) 4.12x − 9.68y + 2.01z = 4.93; 1.88x − 4.62y + 5.50z = 3.11; 1.1x − 0.96y +
2.72z = 4.02.

Q.9 Solve Q.8 using Cramers rule.

Q.10 State whether the given statement is true or false. If true, prove/justify the statement
and if false, give a counter example. (CO 2,3,4)

a. A system of 3 equations in 2 unknowns has no solution.

1
b. 2 equations in 3 unknowns cannot have exactly one solution.
c. A system of equations could have exactly 2 solutions.
d. If there is a pivot in every row of matrix A then AX = b is always consistent.
e. If the augmented matrix has a pivot in the last column, then AX = b is inconsis-
tent.
f. If A has a row of 0′ s, then AX = b is inconsistent ∀ b.
g. AX = 0 is always consistent.

Q.11 If the system of equations x + ay = 0, az + y = 0, ax + z = 0 has infinite number


of solutions then a = ...
a) 0, b) 1, c) −1 , d) −2. (CO 2)

Q.12 If the equations ax + by + cz = 0, 4x + 3y + 2z = 0, x + y + z = 0 have nontrivial


solution, then a, b, c are in ..
a) Arithmetic progression, b) Geometric progression,
c) Increasing sequence , d) Decreasing sequence. (CO2)

Q.13 Find at least one non-trivial solution to (CO 3)

a. 3x + y + z = 0
b. 3x + y + z = 0; x + y + z = 0
c. −2x + 3y + z + 4w = 0; x + y + 2z + 3w = 0; 2x + y + z − 2w = 0

Q.14 Show that following system have only trivial solutions: (CO 3)

a. 4x − 7y + 3z = 0; x + y = 0; y − 6z = 0.
b. 7x − 2y + 5z + w = 0; x − y + z = 0; y − 2z + w = 0; x + z + w = 0.
c. 3x + 4y − 2z = 0; x + y + z = 0; −x − 3y + 5z = 0

Q.15 Determine whether the following systems of equations are consistent or not. If con-
sistent, determine the complete solution set by Gauss elimination method.
(CO 3)

a. 2x + 2y + z = 8; x − y = −2; y + z = 0. Ans: 2,4,-4


b. x + y + z = 2; x + 2y + 3z = 3; 2x + 3y + 4z = 4. Ans : Inconsistent
c. 2x − y + 3z = 2; x + y = 4; 2x + y + z = 6 Ans: (2, 2, 0)T + r(−1, 1, 1)T
d. x+2y−z+2w = 1; 3x+z+4w = −1; x−y+z+w = −1. Ans: a(4, 1, 0, −3)T +
b(−3, 0, 1, 2)T + (−3, 0, 0, 2)T
e. 2x + y + 4z + w = 0; −3x + 2y − 3z + w = 0; x + y + z = 0.
f. (1 − i)x − iy = 0; 2x + (1 − i)y = 0 Ans: s(1, (−1 − i))T

Q.16 Find the value of λ for which the system 3x + y − λz = 0; 4x − 2y − 3z = 0; 2λx +


4y + λz = 0 has a non-trivial solution. Obtain these solutions for real values of λ.
(Ans: -1, 9) (CO 3)

2
Q.17 Let p(x) = a0 + a1 x + a2 x2 . Choose ai such that p(1) = b1 , p(2) = b2 , p(3) = b3 .
Is this choice unique? (CO 3)

Q.18 Give a system of linear equations (CO 2)

a. having (1, 0, 0) as "the" only solution.


b. (1, 0, 0) and (0, 1, 0) as solutions.
c. (1, 0, 0), (0, 1, 0), (0, 0, 1) as solutions.

Q.19 Find equivalent matrix in echelon form. (CO 3)


   
1 0 2 6 3 −4
a. 2 −1 3 , −4 1 −6
4 1 8 1 2 −5
 
  1 3 −1 2
0 1 3 −2 
0 11 −5 3
b. 2 1 −4 3  ,

2 −5 3 1

2 3 2 −1
4 1 1 5
Q.20 A shopkeeper is convinced that north Indians eat more wheat than rice and south
Indians eat more rice than wheat. So he offers two packets say N containing 5kg of
wheat and 2 kg of rice and second packet S containing 5 kg of rice and 2 kg of wheat.
What do I do if I want 34 kg of wheat and only 1 kg of rice? (CO 5)

You might also like