java atan(アークタンジェント)値を取得する

javaで、atan(アークタンジェント)値を取得する手順を記述してます。
環境
- OS windows11 home
- java 17.0.2
手順
atan(アークタンジェント)値を取得するには、「Math.atan」で可能です。
Math.atan(ラジアン値)
実際に、使用してみます。
public class App {
public static void main(String[] args) throws Exception {
System.out.println(Math.atan(Math.toRadians(30))); // 0.48234790710102493
System.out.println(Math.atan(Math.toRadians(15))); // 0.25605276998075555
}
}
取得されていることが確認できます。
-
前の記事
mac ユーザーのuidを確認する 2022.10.12
-
次の記事
DB Browser for SQLite コメントアウトのショートカット 2022.10.12
コメントを書く