You are on page 1of 2

Assignment# 1

Subject: Numerical Computing Instructor: Azeem Aftab/Hassam Siddiqui


Program: BS/BE

Question 1
Find the root of the following function using:
a. Bisection Method
b. Secant Method
c. Newton’s Method

 x - sin(x) - (1/2)= 0, between the interval ( 1,2) for tolerance: < 10-3
 x4-x-10 = 0, between the interval ( 1.5,2) for tolerance: < 10-3

d. Fixed Point Iteration


 X2 +2x-15 = 0, for initial value x0=2 for tolerance: < 10-3

Question 2

In Aerospace industry, sometimes we have to compute the trajectories of projectiles such as


rockets. A related problem deals with the trajectory of a thrown ball. The trajectory of a ball
thrown by a right fielder is defined by the (x, y) coordinates as displayed in figure below. The
trajectory can be modeled as

Page 1 of 2
Use Secant method to find the appropriate initial angle,θ0 , if v 0= 30 m/s, and the distance to the
catcher is 90 m (x). Note that the throw leaves the right fielder’s hand at an elevation of 1.8 m (
y 0 ¿and the catcher receives it after the reaching the height of 1 m. Solve until the 7 iterations
taking 5 decimal places into count by considering y 0as the starting value and yto be the next
value.(Take g = 9.81 m/sec2)

Question 3

Find the minimum number of iterations needed by the bisection algorithm to approximate the
root x = 3 of x 3 − 6x 2 + 11x − 6 = 0 with error tolerance 10−3 .

Input Data: ( End points of the interval: a = 2.5, b = 4 Error tolerance: t = 10−3)

Question 4

The following polynomial can be used to relate the zero-pressure specific heat of dry air, Cp, kJ/
(kg K), to temperature, (K):

Use Secant method to determine the temperature that corresponds to the specific heat of 1.1(Cp)
kJ/(kg K) using the temperature range of T = 0 to 1200 K up to the tolerance of 1x10-4 using 5
decimal places.

Question 5

An oscillating current is described by I =9 e−t sin(2 πt) , where t is in seconds. Use Newton-
Raphson method to determine the value of t such that I = 3.5, starting with the initial value of
time, t, as 1 sec. Solve till four iterations using 5 decimal places.

Page 2 of 2

You might also like