You are talking about 3 parameters for your custom ATAN_2 function. Have a look on the ATAN2 example from the KAREL reference manual. This is an example with 3 input parameters. You could copy the example code and create your own function. You could then compare the result from your own function with the ATAN_2 function by using the same values for the arguments. Maybe you have luck and it is the same. It's worth a try.
That is a great idea. I just started reading into the KAREL manual. I will CTRL+F "ATAN2" and go ahead and try exactly what you suggested. That will be the best way to know if its the basic Atan2 equation or if theres some other stuff going on in there. I will report back with my findings if i get a chance tomorrow! Thank you again!