You are on page 1of 3

# Computational Techniques and Programming-II (PH-518)

## Assignment No. 2(B)

Numerical Integration by using Simpsons One third and three eight rule
(Submission date:
04.03.2011)
Solve following problems using Simpsons 1/3 and 3/8 rule. Also write a computer code
for these formulas and compare the programs output with calculated results.
Q.No.1)The tabulated values for the function f ( x) =
6

1+ x

1
is given below .Evaluate
1 + x2

dx .

x
y

0
1

1
0.5

2
0.2

3
0.1

4
0.0588

5
0.0385

6
0.027

1
dx .
1 + x2
0

x 0 0.2
y 1 0.961
5
2

Q.3) Evaluate

x /2

0.4
0.8621

0.6
0.7353

0.8
0.6098

1.0
0.5

## dx from the table given below:.

x 1.00
y 0.606
5

1.25
0.535
3

1.50
0.4724

1.75
0.4169

2.00
0.3679

1
Q.4) The tabulated values of the function f ( x) =
is given below. Evaluate
x
x 1.00 1.25 1.50
1.75
2.00
y 1.00 0.80 0.6667
0.5714 0.500
0
1

Q.5) Evaluate

x dx
1

0

x 0.00
y 1.00

0.20
0.8333

0.40
0.7143

0.60
0.6250

0.80
0.5556

1.00
0.500

0.7
1.34
3

0.8
1.512

Q.6) Evaluate

(x

x 2.00
y 8.00

2.50
11.2
5

3.00
15.00

3.50
19.2
5

4.00
24.00

Q.7) Evaluate

1 + x dx
3

0.1

X
Y

0.1
1.00
1

0.2
1.008

0.3
1.02
7

0.4
1.064

0.5
1.12
5

0.6
1.216

0.9
1.0
1.72 2.0
9
Ans: 1.0883

## Q.8) From the table given below

X
Y

4.0
1.3863

4.2
1.4351

4.4
1.2816

4.6
1.5261

4.8
1.5686

5.0
1.6094

5.2
1.6487

5.2

(log x)dx

Evaluate

Q.9) A curve is drawn to pass through the points given by the following table.
X
Y

1.0
2.0

1.5
2.4

2.0
2.7

2.5
2.8

3.0
3.0

3.5
2.6

4.0
2.1

Estimate the area bounded by the curve , x-axis and the lines x= 1, x = 4.
Q.10) A curve is given by the table:
X
Y

0
0

1
2.0

2
2.5

3
2.3

4
2.0

5
1.7

6
1.5

## Estimate area bounded by the curve , x-axis and the lines x = 1, x = 4.

Q.11) Consider the table given below
x 0

0.5

1.0

1.5

2.0

2.5

3.0

3.5

4.0

4.5

5.0

y 0.
2

0.142
9
5

Evaluate

0.111
1

0.090
9

0.076
9

0.066
7

0.058
8

0.052
6

0.047
6

0.043
5

0.040

4 x + 5dx .
0

Question number
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)

Simpsons 1/3
1.3662
0.7487
0.4773
0.6933
0.6582
30.6667
1.0883
1.8279
7.7833
11.5000
0.40253

Simpsons 3/8
1.3571
0.7703
0.4529
0.6603
0.6795
27.9844
1.14997
1.8278
7.8375
11.5125
0.3975S