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

GIK Institute of Engineering Sciences and Technology

Quiz−𝟔 (CLO−𝟒)
Numerical Analysis (ES−𝟑𝟒𝟏)
Summer−𝟐𝟎𝟐𝟐
Max. Marks: 𝟏𝟎 Weightage- 5%

Reg. No: --------------------- Name: -------------------------- Section: --------

Q.1. (𝟐𝟎𝟏𝟕𝟑𝟒𝟏)
Write a Matlab program to find a real root of the equation 4𝑥 + 𝑠𝑖𝑛𝑥 − 𝑒 𝑥 = 0 using the Newton-Raphson method.
Take initial approximation as 𝑥0 = 0. The program should perform 1000 of iterations. Also find the absolute and relative
percentage error.

Q.2. (𝟐𝟎𝟏𝟖𝟑𝟑𝟒)

Write a Matlab program to find a real root of the equation 4𝑥 + 𝑠𝑖𝑛𝑥 − 𝑒 𝑥 = 0 using the Secant method. Take initial
approximation as 𝑥0 = 0 and 𝑥1 = 1. Also find the absolute and relative percentage error.

Q.3. (𝟐𝟎𝟏𝟖𝟒𝟓𝟕)

Write a Matlab program to find a real root of the equation 4𝑥 + 𝑠𝑖𝑛𝑥 − 𝑒 𝑥 = 0 using the fixed-point iteration method.
1
Take 𝑥 = 𝑔(𝑥) = 4 (𝑒 𝑥 − 𝑠𝑖𝑛𝑥) and 𝑥0 = 0 as an initial approximation. Also find the absolute and relative percentage
error.

Q.4. (𝟐𝟎𝟏𝟖𝟓𝟎𝟑)

Write a Matlab program to find a real root of the equation 4𝑥 + 𝑠𝑖𝑛𝑥 − 𝑒 𝑥 = 0 using the Bisection method. Take initial
approximation as 𝑥0 = 0 and 𝑥1 = 1. Also find the absolute and relative percentage error.

Q.5. (𝟐𝟎𝟏𝟗𝟎𝟓𝟐)

Write a Matlab program to evaluate the integral of 𝑓(𝑥) = √𝑥 2 + 1 over [0,2] with 12 subintervals using the Composite
Trapezoidal rule. Also find the absolute and relative percentage error.
Q.6. (𝟐𝟎𝟏𝟗𝟎𝟔𝟓)

Write a Matlab program to evaluate the integral of 𝑓(𝑥) = √𝑥 2 + 1 over [0,2] with 12 subintervals using the Composite
Simpson’s rule. Also find the absolute and relative percentage error.

Q.7. (𝟐𝟎𝟏𝟗𝟏𝟎𝟐)

Write a Matlab program to find a real root of the equation 4𝑥 + 𝑐𝑜𝑠𝑥 − 𝑒 𝑥 = 0 using the fixed-point iteration method.
1
Take 𝑥 = 𝑔(𝑥) = (𝑒 𝑥 − 𝑐𝑜𝑠𝑥) and 𝑥0 = 1 as an initial approximation. Also find the absolute and relative percentage
4
error.

Q.8. (𝟐𝟎𝟏𝟗𝟏𝟐𝟑)

Write a Matlab program to find a real root of the equation 4𝑥 + 𝑐𝑜𝑠𝑥 − 𝑒 𝑥 = 0 using the Bisection method. Take initial
approximation as 𝑥0 = 1 and 𝑥1 = 3. Also find the absolute and relative percentage error.

Q.9. (𝟐𝟎𝟏𝟗𝟏𝟖𝟏)

Write a Matlab program to evaluate the integral of 𝑓(𝑥) = √𝑥 3 + 𝑥 over [0,4] with 12 subintervals using the Composite
Trapezoidal rule. Also find the absolute and relative percentage error.

Q.10. (𝟐𝟎𝟏𝟗𝟏𝟗𝟔)

Write a Matlab program to find a real root of the equation 4𝑥 + 𝑐𝑜𝑠𝑥 − 𝑒 𝑥 = 0 using the Secant method. Take initial
approximation as 𝑥0 = 1 and 𝑥1 = 3. Also find the absolute and relative percentage error.

Q.11. (𝟐𝟎𝟏𝟗𝟐𝟎𝟒)

Write a Matlab program to evaluate the integral of 𝑓(𝑥) = √𝑥 3 + 𝑥 over [0,4] with 12 subintervals using the Composite
Simpson’s rule. Also find the absolute and relative percentage error.

Q.12. (𝟐𝟎𝟏𝟗𝟑𝟓𝟑)

Write a Matlab program to evaluate the integral of 𝑓(𝑥) = √𝑥 2 + 𝑥 over [0,4] with 12 subintervals using the Composite
Trapezoidal rule. Also find the absolute and relative percentage error.
Q.13. (𝟐𝟎𝟐𝟎𝟎𝟖𝟖)

Write a Matlab program to evaluate the integral of 𝑓(𝑥) = √𝑥 2 + 3 over [0,4] with 12 subintervals using the Composite
Trapezoidal rule. Also find the absolute and relative percentage error.

Q.14. (𝟐𝟎𝟐𝟎𝟑𝟑𝟐)

Write a Matlab program to find a real root of the equation 4𝑥 + 𝑐𝑜𝑠𝑥 − 𝑒 𝑥 = 0 using the Newton-Raphson method.
Take initial approximation as 𝑥0 = 1. The program should perform 1000 of iterations. Also find the absolute and relative
percentage error.

Q.15. (𝟐𝟎𝟏𝟗𝟑𝟓𝟒)

Write a Matlab program to evaluate the integral of 𝑓(𝑥) = √𝑥 2 + 𝑥 over [0,4] with 12 subintervals using the Composite
Simpson’s rule. Also find the absolute and relative percentage error.

You might also like