0
I’m trying to do the procedure below but x and y are a list of numbers and that’s why it’s giving error. I used the following code:
theta = [180* math.atan(y/x)/math.pi for x,y in zip(media_v1, media_v2)]
if x > 0 and y <0:
theta = theta + 90
elif x < 0 and v < 0:
theta = theta + 180
elif x < 0 and v > 0:
theta = theta + 270
The first one I managed to do the procedure with the list (media_v1 and media_v2) all using the 'for', but when I try to do the 'if' it does not to the whole list and gives the following error:
TypeError: '>' not supported between instances of 'list' and 'int'