اريد برنامج يقوم بحل المعادلتين معا بحيث عندما اقوم بادخال قيمة )x)
فيظهر البرنامج قيمة y
We have the value of x and y
X Y X*y X^2
1 10 10 1
2 20 40 4
3 30 90 9
4 40 160 16
5 50 250 25
Sum(x)=15 Sum(y)=150 Sum(x*y)=550 Sum(x^2)=55
The first equation is .........sum(y)=[n*a] + [ b*sum (x)]..........1
The second equation is.......sum(x*y)=[a*sum(x)] + [b*sum(x^2)]........2
We need to get the value of (a) and (b)...so if i have the value of (x) then i can get the value of (y
Where (n) is the number of (X)....in this example n=5