You are viewing a single comment's thread. Return to all comments →
from cmath import phase import re r = input() reg = re.findall('[+|-]*[0-9]+', r) x, y = map(int, reg) print(abs(complex(x, y))) print(phase(complex(x, y)))
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 →