You are viewing a single comment's thread. Return to all comments →
from cmath import phase from math import sqrt com = input() com = complex(com) x = com.real y = com.imag r = sqrt((x*x)+(y*y)) z = phase(com) print(r) print(z)
Seems like cookies are disabled on this browser, please enable them to open this website
Polar Coordinates
You are viewing a single comment's thread. Return to all comments →