[Python] math.atan and np.arctan gives error number

Discussão em 'Python' iniciado por Stack, Setembro 14, 2024.

  1. Stack

    Stack Membro Participativo

    I'm working with coordinates ECEF xyz to Latitude, Longitude, Height From x,y,z i have a numbers, and when i make the conversation for the first one, Latitud, i have my x and y.

    x=4201473.689127885
    y=172421.1368615774


    So when i follow the equation for latitude, my x and y are in radians

    latitude=math.atan2(x/y)


    my result is

    1.52978108937303


    And if i do it in the calculator the arctan of x and y gives me

    87.65


    But i don't understand why i have differents resutls.

    Continue reading...

Compartilhe esta Página