TypeError: unsupported operand type(s) for -: 'complex' and 'list'
This mean you tried to subtract list
from complex
number, you are doing:
x1=[1.5+1.2j]
...
v0[t]=abs(values_list[k]-list(x1))
I suppose x1
should be complex
. Then change first to x1=1.5+1.2j
(currently this is list
with one complex
) and second to v0[t]=abs(values_list[k]-x1)
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…