Here is Equation 1: R = s q r t ( X 2 + Y 2 ) {\displaystyle R=sqrt(X^{2}+Y^{2})}
This is Equation 2: D = s q r t ( P 2 + Q 2 ) {\displaystyle D=sqrt(P^{2}+Q^{2})}
End of My_Sandbox