下列哪个选项是正确计算角度42°的余弦值?(  )

admin2010-12-17  28

问题 下列哪个选项是正确计算角度42°的余弦值?(  )

选项 A、double d = Math. cos(42);
B、double d = Math. cosine(42);
C、double d = Math. cos(Math. toRadians(42));
D、double d = Math. cos(Math. toDegrees(42));

答案C

解析 public static double cos(doublea)是Math类中返回以弧度为单位的a的余弦值的,应先用toRadians()方法将42°转换为弧度值。
转载请注明原文地址:https://jikaoti.com/ti/17H0FFFM
0

最新回复(0)