We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Math
- Find Angle MBC
- Discussions
Find Angle MBC
Find Angle MBC
Sort by
recency
|
840 Discussions
|
Please Login in order to post a comment
As mentioned by theflippedbit, this problem is rooted in the concept of circumscribed right triangles. If we draw the diameter of the circle (which serves as the hypotenuse), any point chosen on the circumference will form a right triangle. Since the midpoint of the hypotenuse (or midpoint of AC in our case) is also the center of the circle, it makes sense that AM = MC = MB.
Notice that AM = MC = MB (right angle triangle inscibed in a circumcirle property) once that is established, use sine rule a/sin A = b/sin B to get the desired angle.
import math
a = int(input()) b = int(input())
radies = math.atan(a/b) degrees = math.degrees(radies) round = round(degrees) e = chr(176) print(f"{round}{e}")