4th Nov 2022, 6:59 AM
Evseev Anton
Evseev Anton - avatar
4 ответов
+ 2
Why you add Math.cos()? 75° = 1.309.. radian. Math.radian() convert degree to radian. do this : Math.toDegrees(Math.acos(radian)); you should rename your convert var to cosRadian
4th Nov 2022, 7:24 AM
Roland
Roland - avatar
+ 1
// cos(75°) = 0.258819 rad; double radian = 0.258819; int degree = 75; double toRadian = Math.cos( Math.toRadians( degree) ); System.out.println( radian +" = "+ toRadian); // 0.258819 = 0.258819... int toDegree = (int) Math.toDegrees( Math.acos( radian) ); System.out.println( degree +" = "+ toDegree); // 75 = 75
4th Nov 2022, 4:45 PM
zemiak
0
I need to calculate the values of the angles of the triangle. According to the formula, I get the cos() value, which then, to convert to degrees, I need to look at the Bradis cosine table. How do I convert this value to degrees?
4th Nov 2022, 9:20 AM
Evseev Anton
Evseev Anton - avatar
0
zemiak: thank you!
5th Nov 2022, 1:49 AM
Evseev Anton
Evseev Anton - avatar