java cosh(ハイパーボリックコサイン)値を取得する

javaで、cosh(ハイパーボリックコサイン)値を取得する手順を記述してます。「Math.cosh」にラジアン値を指定することで可能です。
環境
- OS windows11 home
- java 19.0.1
手順
cosh(ハイパーボリックコサイン)値を取得するには、「Math.cosh」で可能です。
Math.cosh(ラジアン値)
実際に、使用してみます。
public class App {
public static void main(String[] args) throws Exception {
System.out.println(Math.cosh(Math.toRadians(45))); // 1.3246090892520057
System.out.println(Math.cosh(Math.toRadians(-45))); // 1.3246090892520057
}
}
取得されていることが確認できます。
-
前の記事
python seleniumでエラー「’WebDriver’ object has no attribute ‘find_element_by_name’」が発生した場合の対処法 2023.01.18
-
次の記事
python seleniumでエラー「’WebElement’ object is not iterable」が発生した場合の対処法 2023.01.18
コメントを書く