Professional Documents
Culture Documents
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
-------------------------------------------------------------------------------------------------------------------------------------Course Code
:
MCSE-004
Course Title
:
Numerical and Statistical Computing
Assignment Number
:
MCA(5)/E004/Assign/2013
Maximum Marks
:
100
Weightage
:
25%
Last Dates for Submission
:
31st October, 2013 (For July 2013 Session)
30th April, 2014 (For January 2014 Session)
This assignment has eleven questions in all and carries 80 marks. The rest of the 20 marks
are for viva-voce. Answer all the questions. You may use illustrations and diagrams to
enhance the explanations. Please go through the guidelines regarding assignments given in
the Programme Guide for the format of presentation.
Question 1: If = , is approximated as 3.14, find the absolute
error relative error and relative percentage error.
Answer:
From the above question here, x =
and xa = 3.14
(6 marks)
=| x - xa|
= 3.1428 3.1400
= 0.0028
Relative Error:
= |x xa| / x
= |3.1428 3.1400| / 3.1428
= 0.000890
= 0.890X 10-3
Percentage Relative Error: = Relative Error X 100
= 0.000890 X 100
=0.089
=0.89 X 10-1
Question 2: Using Regula Falsi method, find the real-root of the
3
2
equation x x 2 = 0
Answer:
(6 marks)
Let f(x) = x3 x2 2 =0
f(0) = 03 - 02- 2= -2 (-ve)
f(2) = 23 -22 2=8 4 2= 2 (+ve)
We shall find the root that lies between (0,2)
( )
( )
( )
( )
2|P ag e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
--------------------------------------------------------------------------------------------------------------------------------------
( )
( )
( )
(
(
)
)
(
(
)
)
( ) (
= 1.8 approx.
now,
f(1.8)= 1.83 -1.82-2 = -0.59
therefore, the root lies between (1,1.5)
(
(
(
(
)
)
( )
( )
)
) (
)
)
3|P ag e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
--------------------------------------------------------------------------------------------------------------------------------------
)
)
(
(
)
)
Now,
f(1.68)= 1.683 -1.682-2 = -0.08
so, the root lies between (1.68,1.61)
(
(
)
)
(
(
)
)
(
(
)
)
Since, | x7 x6| = 0.01, the approximation X8 = 1.66 is correct to decimal places and hence, the
root is = 1.6
Question 3: Solve by Jacobi iteration method, the system of
equations 3x 3y + 2z = 0; 6x + 3y + 12z = 35
and 4x + 11y z = 33
Answer:
(6 marks)
To apply Jacobi iteration method, we have to check that diagonal elements are dominant.
i.e. 3 < 3+2, 3< 12=6, 1<4+11
therefore, we can see that the above comparison does satisfy the condition of
dominancy, so we must rearrange the system of equation such that it become
dominant.
i.e.
3x - 3y +2z =0,
6x + 12z +3y = 35,
4x z + 11y = 33
-------------------------------------------------------------------------------------------------------------------------------------By: Mr. Lokesh Chandra Singh. (09334255802)
4|P ag e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
-------------------------------------------------------------------------------------------------------------------------------------Now, dominancy test,
3 > (-3) +2; 12 > 6+3 ; 11 > 4 + 2
Therefore,
Or,
Or,
------------- (1)
-------------- (2)
-------------- (3)
First Iteration:
From the above equation, we start with x = y = z = 0
x(1)
y(1)
z(1)
= -33
Second Iteration:
Consider the new value of x (1), y (1), z (1) in equation (1), (2) and (3)
x(2)
))
= 33.66666
y(2)
(2)
))
= 143.66666
= 4*0 + 11* 11.66666 -33
= 128.33326 - 33
= 95.33326
Third Iteration:
Consider the new value of x (2), y (2), z (2) in equation (1), (2) and (3)
x(3)
))
)
= 80.11115
y(3)
(3)
)
)
= 436.9996
= 4*33.66666 + 11* 143.66666 -33
= 1681.9999
5|P ag e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
-------------------------------------------------------------------------------------------------------------------------------------Iteration
X
Y
Z
1
0
11.66666
-33
2
33.66666
143.66666
95.33326
3
80.11115
436.99969
1682.99999
Hence, from the above table we can say that the values of x, y, z does not match in any iteration.
So we can say that we cannot find the exact solution to the given equation system.
Question 4: Prove that { logf(x) } = log [
( )
( )
(8 marks)
Answer:
log [
( )
)
( )
------- LHS.
] = log [
( )
( )
(
= log [
= log [
( )
)
( )
------- RHS.
log [
)
( )
] = log [
Hence:
{ logf(x) } = log [
)
( )
( )
( )
Proved.
(6 marks)
6|P ag e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
--------------------------------------------------------------------------------------------------------------------------------------
(8 marks)
7|P ag e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
--------------------------------------------------------------------------------------------------------------------------------------
(8 marks)
8|P ag e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
-------------------------------------------------------------------------------------------------------------------------------------2
Question 8: Solve the initial value problem u = 2tu
(8 marks)
with u(0) = 1 and h = 0.2 on the interval [0, 1].
Use the fourth order classical Runge-Kutta Method.
Answer:
2
(8 marks)
9|P ag e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
--------------------------------------------------------------------------------------------------------------------------------------
The values of log x for each point of sub-division are given below:
10 | P a g e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
--------------------------------------------------------------------------------------------------------------------------------------
11 | P a g e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
-------------------------------------------------------------------------------------------------------------------------------------Question 10: Study the case below and answer the respective questions.
(8 marks)
Ticket of a game costs Rs. 500/- per person, the game comprises of an experiment
where 3 coins are to be tossed once and for each tail the organizer claims to pay Rs.
200/- and for each head a sum of Rs. 100/- is to be paid.
12 | P a g e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
-------------------------------------------------------------------------------------------------------------------------------------P({X = 3}) = P({a1}) =
{0, 1, 2, 3}
Suppose X is random variable denoting the number of Heads or Tails obtained in one
independent tosses of 3 coins, then the probabilities mass function (p.m.f) p is the function, p:
X R, such that;
P(0) =
, P(1) = P(2) =
, P(3) =
=1
In this case the p.m.f of the random variable by the function p and the corresponding probability
distribution is the set
{(0 , ) , (1 , ) , ( 2, ) , (3 , )}
13 | P a g e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
-------------------------------------------------------------------------------------------------------------------------------------Now the:
Probability distribution Table for the number of heads in one independent toss of 3 coins:
The number of heads (X values)
Probability
Probability distribution Table for the number of Tails in one independent toss of 3 coins:
The number of tails (X values)
Probability
ii)
iii)
Yes this is possible to play the game after knowing the probability table. Because we
know that;
The game cost for one person is RS. 500/- each.
Total No. of Coins are 3.
The claim amount paid by organiser for Head RS. 200/- for each head and
The claim amount paid by the organiser for Tail RS. 100/- for each Tail.
14 | P a g e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
-------------------------------------------------------------------------------------------------------------------------------------Now as the Probability table we know that we have two probabilities are available for
Head and Tails are and .
i)
ii)
(8 marks)
Answer:
We will arrange the data in the form of a chart to enable us to perform the computations easily.
15 | P a g e
IGNOU MCA 5th Semester July 2013 January 2014 (MCSE-004) Fully Solved Assignment
--------------------------------------------------------------------------------------------------------------------------------------
(a)
(b)
Thus, the predicted score of the student who had studied 0.85 hours is approximately 64.00.
-------------------------------------------------------------------------------------------------------------------Dont Forget to Say Thanks!
E-mail: lokeshchandrasingh@gmail.com
Web: ignoumcaassignmentsolution.blogspot.com
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------By: Mr. Lokesh Chandra Singh. (09334255802)