Program - 19
Program - 19
Name: Vaishnavi
Roll no.: 68
Section: A1
Algorithm:
1. Input:
• Read the number of data points, n.
• Read the x and y coordinates for each data point.
2. Calculate Summations:
Compute the following sums:
• ∑X , ∑X2, ∑X3, ∑X4 , ∑Y, ∑XY, ∑X2Y
3. Form the Normal Equations:
return 0;
}
Output: