how to propose the following sentence in python?

0

I have an algorithm in which it is stated as such and I have to execute certain commands in python as the algorithm raises so I can not modify, how can I raise the following sentence?

where An is an angle, and everything with the root is a variable called distance.

theoretically I know that the python function exists:

                   An=np.arctan2(y, x) * 180 / np.pi

but the problem is that I do not have x, and when I try to do this

              An=np.arctan2(distancia) * 180 / np.pi 

I get an error because it is not a format supported by python. thanks in advance

    
asked by Loreisiss 28.06.2018 в 02:13
source

1 answer

2

I found the answer! An = np.arctan2 (distance) * 180 / np.pi this is the same as writing in python An = np.arctan2 (y2-y1, x2-x1) * 180 / np.pi

    
answered by 07.07.2018 в 00:08