Obliczanie prostej

mail@pastecode.io avatar
unknown
python
3 years ago
124 B
8
Indexable
Never
def calculateEq(x1,x2):
    m = (x2[1] - x1[1]) / (x2[0] - x1[0])
    c = round((x2[1] - ( m * x2[0])),1)
    return m, c