Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- class Point:
- def __init__(self, a, b):
- self.x = a
- self.y = b
- def polar_angle(self):
- angle = math.atan2(self.y, self.x)
- if angle < 0:
- return angle + 2 * math.pi
- return angle
- x, y = list(map(int, input().split()))
- P = Point(x, y)
- print(P.polar_angle())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement