Find Angle MBC

Sort by

recency

|

865 Discussions

|

  • + 0 comments

    Here is HackerRank Find Angle MBC solution in Python - https://programmingoneonone.com/hackerrank-find-angle-mbc-solution-in-python.html

  • + 0 comments

    import math ab= float(input()) bc= float(input()) angle_mbc= math.degrees(math.atan(ab/bc)) print(str(round(angle_mbc)) + chr(176))

  • + 0 comments

    Law of Cosines

    import math x = int(input()) y = int(input()) a = math.sqrt((x*x)+(y*y)) b = a/2

    z = math.acos((y*y)/(2*y*b)) k = math.degrees(z) print(f'{int(round(k))}\u00B0')

  • + 0 comments

    print(str(round(math.atan(int(input())/int(input()))/math.pi*180)) + chr(176))

  • + 0 comments
    import math
    
    AB = int(input())
    BC = int(input())
    len_m = math.sqrt(AB**2 + BC**2)
    cos_alpha = BC/math.sqrt(AB**2 + BC**2)
    
    BM = math.sqrt((len_m/2)**2 + BC**2 - cos_alpha * (2 * (len_m/2) * BC))
    cos_sigma = (BM**2 + BC**2 - (len_m/2)**2) / (2 * BM * BC)
    
    
    output = math.degrees(math.acos(cos_sigma))
    print(f'{int(round(output))}\u00B0')