Package de.tilman_neumann.jml.hyperbolic
Class ArcCosH
- java.lang.Object
-
- de.tilman_neumann.jml.hyperbolic.ArcCosH
-
public class ArcCosH extends Object
Inverse hyperbolic cosinus function.- Author:
- Tilman Neumann
-
-
Constructor Summary
Constructors Constructor Description ArcCosH()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BigDecimal
acosh1(BigDecimal x, Scale scale)
Computes the "++" branch of acosh(x) = + ln(x + sqrt(x^2-1)).static BigDecimal
acoshAbs(BigDecimal x, Scale scale)
The absolute value of acosh(x) implemented by ln() formula.
-
-
-
Method Detail
-
acoshAbs
public static BigDecimal acoshAbs(BigDecimal x, Scale scale)
The absolute value of acosh(x) implemented by ln() formula.- Parameters:
x
- real argument >= 1scale
- wanted accuracy in after-comma digits- Returns:
- positive value acosh(x), the negation is the second solution
-
acosh1
public static BigDecimal acosh1(BigDecimal x, Scale scale)
Computes the "++" branch of acosh(x) = + ln(x + sqrt(x^2-1)).- Parameters:
x
- real argument >= 1scale
-- Returns:
- "++" branch of acosh(x)
-
-