Can someone please explain to me how to convert the following equation from polar to rectangular?
r=$2^\theta$
Thus far I got:
$4^{\arctan(y/x)}$=$x^2$+ $y^2$
by squaring both sides and replacing $r^2$ with $x^2$+$y^2$ and $\theta$ with $\arctan(y/x)$
However when I graphed both of them, they were not the same and thus I think I went wrong somewhere.
Any help would be very appreciated. Sorry for the format, I'm new to this and not very good.
Thank You


There are two arctan functions, you should choose atan2 which takes care of sign in all quadrants,else you will get correct plot only in first quadrant.
EDIT1:
Still not working? Quadrant sensitive atan2 of Fortran is implemented slightly differently among softwares.In mathematica ArcTan[x, y] is used.Here both plot exactly same on the graph.