Obliczanie prostej
unknown
python
4 years ago
124 B
16
Indexable
def calculateEq(x1,x2):
m = (x2[1] - x1[1]) / (x2[0] - x1[0])
c = round((x2[1] - ( m * x2[0])),1)
return m, cEditor is loading...
def calculateEq(x1,x2):
m = (x2[1] - x1[1]) / (x2[0] - x1[0])
c = round((x2[1] - ( m * x2[0])),1)
return m, c