Estou tentando fazer o procedimento abaixo porém x e y são uma lista de números e por isso esta dando erro. Usei o seguinte código:
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
O primeiro eu consegui fazer o procedimento com a lista (media_v1 e media_v2) toda usando o 'for', porém quando tento fazer o 'if' ele não faz para a lista toda e dá o seguinte erro:
TypeError: '>' not supported between instances of 'list' and 'int'