Your code is intented terribly and has too many dots, but I think this is the issue.
On this line:
a =((x**2)(y**2)-n(promx)(promy)) / (((x**2)**2)-n(promx**2))
You call:
promx**2
Which is raising promx
to the power 2
using exponentiation.
However, promx
is a function, so by calling promx**2
you are saying raise this function definition to the power 2. Which doesn't make sense. What you need to do is call promx
with a value like so:
promx(X)**2
Where X is a list that fills the argument the function promx
requires.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…