Python 3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 19:06:28) [MSC v.
1942 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
= RESTART: C:/Users/ELECT LAB_70/AppData/Local/Programs/Python/Python313/curve
fitting. vaishali_83.py
Enter the number of entries,n=6
Enter the value of x:
10
20
30
40
50
60
The value of x are [10.0, 20.0, 30.0, 40.0, 50.0, 60.0]
Enter the value of y:
30.1
30.2
30.4
30.6
31
33
The value of y are [30.1, 30.2, 30.4, 30.6, 31.0, 33.0]
The sum of all x elements will be: 210.0
The sum of all y elements will be: 185.29999999999998
The sum of the product x*y will be: 6571.0
The sum of the product x*x will be: 9100.0
The term a from the equation y=ax+b will be 0.48475333333333365
The term b from the equation y=ax+b will be 29.17333333333331
The equation of straight line is y=0.484753*x+29.173333