cpp notes
cpp notes
44 60 76
Sum : 15
}U;-(a+br)] =0 and X y-(a+ bx)]=0 15 = 14-6666
i=1 -M-
-M i=r+l
3 -=5; 3
n
60 76 = 25-3333
.: Sy=(a+ bx) and E,=2(a+ bx) 3
=20;
1 r+1 r+1
n
Substituting the average values x in y=a+bx, we get
a+ 5b= 14-6666 ...(1)
ie., Ya+b)4=X, and (n-Y)a+b =r+1 a+ 20b= 25-3333 ...(2)
r+l
(2) - (1) gives, 15b = 10-6667
b=0-71111
a= 14-6666- 5(0-71|11) = l1-||105
Hence, a+b ...(3)
Hence, the straight is y= 11-11105+ 0-7111lx
the points
n
Aliter: The required equation is the straight line joining
(5, 14-6666)-and (20, 25-3333). Its equation is,
10-6667
and a+6tJ 1+] .(4) 14-6666 25-3333- 14-6666
=
= 0-711|
20-5 15
(n-r) (n-r) X-5
That is, a+bi,=y, and a+b x= y ...(5) i.e., y = 146666 +07111lx-5 x (0-71111)
where x, y, are the averages of x's and y's of the y= 0-7l11lx+ 11-11105
the first group and Xz 2 values of x and
averages of x's and y's of the second
group. Example 3. The following table gives corresponding
Equations (5) determine ar + bx.
the a and band using
these values in (1) we get y. Obiain an equation of the form y =
relation y= 4+ bx. 2-0 40 5-5
3-2
63
Note 1. The answer is 43-8 77-3 97:8
not 53 14-2 301
ways. This is an unique since the can be done in many y:
important defect ofgrouping
this method.
Numerical Methods-v Empirical Laws and Curve Fittings
The cquations are
6 -=a+ bx, put =Y; x=X 0-77933=a+n (0- 14164)
cquation as
Rewriting the 1-20165 =a+n (0-31217)
Solution. n (0-31217-0-14164) = 1-20165 0-77933
Y=a+ bX Group lI
equation is 0-17053 n = 0-42232
Hence the Group I
n=2:47651
Y= 4-0 10-95 a=0-77933 -2.-47651 x0-14164= 0-428557
4-82 55 14-05
11 7-10 15-52 Hence C= 10 = 10°42855 =768261
2-0 63
3-2
9-4I
15-8 40-52 Law is Q=2-68261 H247651
2133
Sum :
63
},= 133= 7-11 Example 5. Using the following table, fit a curve of the form
63 2-1, 3 y= a. Find a and b and find the formula by the method of group
40-52 13-5066 averages.
60 70 80
- 158 52666, Y, = 10
1-06
20
1-33
30
1-52
40
1-68 1-81 1.91 2-0) 2-11
3
Y) is
The line joining (X. Y)and (X., (M.K.U.)
6-3966
13-5066 -7-11 = 2-02002 Solution. log y = log a+ b log x
Y-7-11 3-1666
5-2666 2-1
X-2.1
x 2-1
Let Y=logio'. A= log,o4, X=logio*
Le.,
Y= 7-11+ 2-02X -2-02 We get Y=A+ bx ...(1)
Y= 2-02X+ 2-868 Divide into two groups each containing 4 data.
y = 2-02X + 2-868 Group I Group II
X X Y
if thelaw is Q= CH,find Cand nby the method of group averages. 7-2254 1-1662
Solution. Q= CH
X, = 4
= 1:8064, Y,2 =
4
= 0-2916
0-1391 = A + b (1-3450)
log1o =logoC+n logo H
0-2916 =A +b (1-8064)
y=a+ nx where logo Q= y, log,o H=x and a=log10
Group I .. b(1-3450 1-8064) = 0-1391 0-2916
x= logioH, y=logio Group II 0-1525
x= log1oH, y=logio b= 0-4614 = 0-3305
0-07918 0-62325 1-06070
0-25527
014163 078533 030103 1-17319 A = 0- 1391 -0-3305 x 1:3450 = -0-3054
Sum :
0-20412 0-92942 1-37107. a= 10-0305 = 0-49S0 v= 0-495 x3305
0-42493 0-3802 1
2.33800 0-9365 1 3-60496
042493 Example 6. Convert the equation y= x (x-a) to a linear form and
3 = 0-141643 2:3380 = 0-77933
0-93651 3
hence dete rmine aand b. Which will best fit the following data
3 = 031217; y, = B60496 = 1-20165
3
Numerical Methods-v
Empirical Laws and Curve Fittings
8.4 9-6 10-8
7.2 3059 4110
0-05 0-04 = 1529 = 2055
3-6
0-83
4-8
0.31
6-0
0-17
010
007
xy r-a
Hence,
2
Y,=2
Y,=a+bx, implies 66466 =a + b (399) ...(1)