Java Math sinh() 方法
示例
返回不同数字的双曲正弦值
System.out.println(Math.sinh(3));
System.out.println(Math.sinh(-3));
System.out.println(Math.sinh(0));
System.out.println(Math.sinh(1));
定义和用法
sinh()
方法返回一个数字的双曲正弦值。
双曲正弦等同于 (Math.exp(number) - Math.exp(-number)) / 2
。
语法
public static double sinh(double number)
参数值
参数 | 描述 |
---|---|
数字 | 必需。要计算双曲正弦值的数字。 |
技术详情
返回 | 一个 double 值,表示该数字的双曲正弦。 |
---|---|
Java 版本 | 1.5+ |
❮ Math 方法