You are viewing a single comment's thread. Return to all comments →
This will only pass the first and another test. What is the right formula here if BM is not perpendicular to AC? Thanks
import math AB = input() BC = input() MC = math.sqrt(AB*2 + BC*2)/2
print str(int(round((math.asin(MC/BC)*(180/math.pi)))))+"°"
Seems like cookies are disabled on this browser, please enable them to open this website
Find Angle MBC
You are viewing a single comment's thread. Return to all comments →
This will only pass the first and another test. What is the right formula here if BM is not perpendicular to AC? Thanks
import math AB = input() BC = input() MC = math.sqrt(AB*2 + BC*2)/2
print str(int(round((math.asin(MC/BC)*(180/math.pi)))))+"°"