Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
b上記のような状況で、との間の角度を確認したいc。 数学的にはただ
b
c
asin(a/c)
しかし、Java でちょっとした問題に遭遇しました。それが私が同じことを達成しようとしている方法です:
Math.asin(Math.toRadians(a/c));
Math.asin()ラジアンでの引数が必要だと読んだので、変換を実行します。しかし、期待どおりに機能していないようです。結果を度数で取得したい。
Math.asin()
アークサイン関数はラジアンを返しますが、引数として受け入れません。戻り値を度に変換します。