THIS TOOK SO LONG
equation for x > 0 {acos (y/hypotenuse of y and x)} I used online paint for this and it helped too much. basically reversed cos and sin