Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
The Angles of a Triangle solution in Clear category for The Angles of a Triangle by Damian_Horna
from math import acos, degrees
def checkio(a, b, c):
if a+b<=c or b+c<=a or c+a<=b:
return [0, 0, 0]
alpha=round(degrees(acos((b*b+c*c-a*a)/(float(2*b*c)))))
beta=round(degrees(acos((a*a+b*b-c*c)/(float(2*a*b)))))
gamma=round(degrees(acos((a*a+c*c-b*b)/(float(2*a*c)))))
return sorted([alpha,beta,gamma])
Oct. 22, 2016