Computer Programming and Numerical Methods
Computer Programming and Numerical Methods
1
I B.Tech Regular Examinations, May/Jun 2008
COMPUTER PROGRAMMING AND NUMERICAL METHODS
(Metallurgy & Material Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
7. (a) From the following data, estimate the number of persons having income be-
tween
I. 1000 - 1700
II. 3500 - 4000
R4
8. (a) Compute ex dx by using Weddle’s rule with 10 subdivisions
0
dy
(b) Compute the first 3 steps of the initial value problem dx = x−y
2
, y (0) = 1.0
by Taylor series method and next step by Milne’s method with sep length
h=0.1also find x (0.4) and x′ (0.4) using Adam-Bash forth method. [8+8]
⋆⋆⋆⋆⋆
1 of 1
Code No: 07A1EC10 Set No. 2
I B.Tech Regular Examinations, May/Jun 2008
COMPUTER PROGRAMMING AND NUMERICAL METHODS
(Metallurgy & Material Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. What is the need for function? Explain about pre defined functions with an exam-
ple. [16]
4. Write the definition for Structure and give the general format for declaring and
accessing members. [16]
7. (a) Given sin 45◦ =0.7071, sin 50◦ =0.7660, sin 55◦ =0.8192, sin 60◦ . Find sin 52◦ ,
by using Newton’s interpolation formula. Estimate the error.
(b) Find the first and second difference of the polynomial 3x4 +8x3 +3x2 -27x+9.
[8+8]
R3 dx
8. (a) Evaluate 4+x2
by trapezoidal rule and Simpsons 1/3rd rule.
0
⋆⋆⋆⋆⋆
1 of 1
Code No: 07A1EC10 Set No. 3
I B.Tech Regular Examinations, May/Jun 2008
COMPUTER PROGRAMMING AND NUMERICAL METHODS
(Metallurgy & Material Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. (a) Write a program to show the working of static variable in different blocks.
(b) Write a program to show the working of register variable in different blocks.
[8+8]
4. Write the definition for Structure and give the general format for declaring and
accessing members. [16]
7. (a) Given sin 45◦ =0.7071, sin 50◦ =0.7660, sin 55◦ =0.8192, sin 60◦ . Find sin 52◦ ,
by using Newton’s interpolation formula. Estimate the error.
(b) Find the first and second difference of the polynomial 3x4 +8x3 +3x2 -27x+9.
[8+8]
R
5.2
8. (a) Evaluate loge xdx by trapezoidal rule and Simpson’s rule.
4
(b) Apply the fourth order Runge Kutta method to find y(0.2) given that y ′ =
x + y, y (0) = 1 [8+8]
⋆⋆⋆⋆⋆
1 of 1
Code No: 07A1EC10 Set No. 4
I B.Tech Regular Examinations, May/Jun 2008
COMPUTER PROGRAMMING AND NUMERICAL METHODS
(Metallurgy & Material Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
X: 0 2 3 6
Y: 648 704 729 792
8. (a) A solid of revolution is formed by rotating about the x-axis, the area between
the x-axis, the line x=0 and x = 1 and a curve through the points with the
following co-ordinates
X: 0.2 0.4 0.6 0.8 1.00
Y: 2.0000 1.9896 1.9589 1.9089 1.8415
Estimate the volume of the solid formed using Simpsons rule.
1 of 2
Code No: 07A1EC10 Set No. 4
(b) i. Solve y ′ = x + y; y(0) = 1 by Taylors series method. Find the values of y
at x=0.1 and x=0.2.
ii. Using Taylor series method compute y (.2), omitting
dy
o(h6 ) dx = 1 − 2xy y(0) = 0. [8+4+4]
⋆⋆⋆⋆⋆
2 of 2