Find Angle MBC

  • + 0 comments

    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
    
    AB = int(input())
    BC = int(input())
    
    
    AC = math.sqrt(AB**2 + BC**2)
    
    theta = str(int(round(360*math.asin(AB/AC)*(1/(2*math.pi))))) + chr(176)
    
    print(theta)