0% found this document useful (0 votes)
2 views

Task

The document outlines a series of mathematical calculations, including the evaluation of definite integrals and polynomial interpolation using given data points. It provides specific function values and approximations for integrals, ultimately calculating a polynomial at a specific point. The results include numerical approximations for integrals and polynomial values based on provided data.

Uploaded by

asmaa241103
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Task

The document outlines a series of mathematical calculations, including the evaluation of definite integrals and polynomial interpolation using given data points. It provides specific function values and approximations for integrals, ultimately calculating a polynomial at a specific point. The results include numerical approximations for integrals and polynomial values based on provided data.

Uploaded by

asmaa241103
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Solution

b−a 1−0
h= = = 0.125
n 8
1
To calculate f (xi ) = 1−x2i
:

f (0) = 1
f (0.125) = 1.015873
f (0.25) = 1.066667
f (0.375) = 1.163636
f (0.5) = 1.333333
f (0.625) = 1.641026
f (0.75) = 2.285714
f (0.875) = 4.266667
f (1) = undefined.
Since:

Z 1
1 0.125
dx ≈ [f (0) + 2(f (0.125) + f (0.25) + f (0.375) + f (0.5) + f (0.625) + f (0.75) + f (0.875))]
0 1 − x2 2

7
X
f (xi ) = 1.015873 + 1.066667 + 1.163636 + 1.333333 + 1.641026 + 2.285714 + 4.266667
i=1
≈ 11.772916
Then: Z 1
1 0.125
dx ≈ [1 + 2(11.772916)]
0 1 − x2 2
Simplify:
Z 1
1 0.125
dx ≈ × 24.545832 = 0.0625 × 24.545832 ≈ 1.534114
0 1 − x2 2

1
Solution:
We know that :
5
f (v) = √
v v

b−a 8 − 12
h= = = −0.5
n 8

vi = a + i · h, i = 0, 1, 2, . . . , 8
Then:
v0 = 12, v1 = 11.5, v2 = 11, v3 = 10.5,
v4 = 10, v5 = 9.5, v6 = 9, v7 = 8.5, v8 = 8.
Now function values are:
f (12) = −0.120281
f (11.5) = −0.128000
f (11) = −0.136083
f (10.5) = −0.144567
f (10) = −0.158114
f (9.5) = −0.172132
f (9) = −0.192450
f (8.5) = −0.214476
f (8) = −0.221735

2
Since: " #
8 7
−5 −0.5
Z X
√ dv ≈ f (12) + 2 f (vi ) + f (8)
12 v v 2 i=1

And:
7
X
f (vi ) = −1.145822
i=1

Then:
8
−5 −0.5
Z
√ dv ≈ [−0.120281 + 2(−1.145822) + (−0.221735)]
12 v v 2
−0.5
≈ (−2.633660)
2
≈ 0.658415

Solution:
The given data points are:

(x0 , y0 ) = (0, 0.5), (x1 , y1 ) = (1, 3.134), (x2 , y2 ) = (2, 5.3), (x3 , y3 ) = (5.5, 9.9), (x4 , y4 ) = (11, 10.2)

For n = 4 , the polynomial becomes:

P (x) = y0 L0 (x) + y1 L1 (x) + y2 L2 (x) + y3 L3 (x) + y4 L4 (x)


Then:

(8 − 1)(8 − 2)(8 − 5.5)(8 − 11) (7)(6)(2.5)(−3)


L0 (8) = = = −2.603
(0 − 1)(0 − 2)(0 − 5.5)(0 − 11) (−1)(−2)(−5.5)(−11)

(8 − 0)(8 − 2)(8 − 5.5)(8 − 11) (8)(6)(2.5)(−3) −360


L1 (8) = = = = −8
(1 − 0)(1 − 2)(1 − 5.5)(1 − 11) (1)(−1)(−4.5)(−10) 45

3
(8 − 0)(8 − 1)(8 − 5.5)(8 − 11) (8)(7)(2.5)(−3)
L2 (8) = = = −6.6667
(2 − 0)(2 − 1)(2 − 5.5)(2 − 11) (2)(1)(−3.5)(−9)

(8 − 0)(8 − 1)(8 − 2)(8 − 11) (8)(7)(6)(−3)


L3 (8) = = = 2.336
(5.5 − 0)(5.5 − 1)(5.5 − 2)(5.5 − 11) (5.5)(4.5)(3.5)(−5.5)

(8 − 0)(8 − 1)(8 − 2)(8 − 5.5) (8)(7)(6)(2.5)


L4 (8) = = = 0.1544
(11 − 0)(11 − 1)(11 − 2)(11 − 5.5) (11)(10)(9)(5.5)

P (8) = 0.5(−2.603) + 3.134(−8) + 5.3(−6.6667) + 9.9(2.336) + 10.2(0.1544)

P (8) ≈ 10.956

You might also like