我在使用 java Math 函數時得到錯誤的輸出。預期產出 = 4.32 當前產出 = 4.30287105016515double startHeight= 60.00;double initaldistance=1000.00;double speed=120;startDistance=(initaldistance-1.688*speed);startAngle = Math.toDegrees(Math.atan(startHeight/startDistance));System.out.println(startAngle);
添加回答
舉報
0/150
提交
取消