Magnitude and Angle Calculation