function triangleAngles(a, b, c){
let A = Math.acos((b^2 + c^2 - a^2)/2*b*c)
let B = Math.acos((a^2 + c^2 - b^2)/2*a*c)
let C = Math.acos((b^2 + a^2 - c^2)/2*a*b)
return [Math.floor(A * 57.2958),
Math.floor(B * 57.2958),
Math.floor(C * 57.2958)]
}
Hi guys. This function returns [null, null, null].
Does anyone have an idea why?
Created at: 2018/07/04 21:42; Updated at: 2018/07/05 02:22