\Rightarrow\quad A=\sqrt{p^2+q^2},\quad \varphi=\arctan\frac{q}{p}