File "C:\Users\huber\py\geom.py", line 61, in koeff
a = (B[1]-A[1])/(B[0]-A[0])
TypeError: 'module' object is not subscriptable
Wo ist hier ein Modul im Spiel?
Code: Alles auswählen
#liefert Koeff. [a,b] von y = a*x+b für Gerade durch A,B
def koeff(A,B):
a = (B[1]-A[1])/(B[0]-A[0])
b = A[1] - a*A[0]
return [a,b]