Package org.hipparchus.util
Class SinhCosh
java.lang.Object
org.hipparchus.util.SinhCosh
Holder for both hyperbolic sine and hyperbolic cosine values.
This class is a simple container, it does not provide any computational method.
- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondoublecosh()Get the value of the hyperbolic cosine.static SinhCoshdifference(SinhCosh schAlpha, SinhCosh schBeta) Compute hyperbolic sine and hyperbolic cosine of angles difference.doublesinh()Get the value of the hyperbolic sine.static SinhCoshCompute hyperbolic sine and hyperbolic cosine of angles sum.
-
Method Details
-
sinh
public double sinh()Get the value of the hyperbolic sine.- Returns:
- value of the hyperbolic sine
-
cosh
public double cosh()Get the value of the hyperbolic cosine.- Returns:
- value of the hyperbolic cosine
-
sum
Compute hyperbolic sine and hyperbolic cosine of angles sum.- Parameters:
schAlpha- \((\sinh \alpha, \cosh \alpha)\)schBeta- \((\sinh \beta, \cosh \beta)\)- Returns:
- \((\sinh \alpha+\beta, \cosh \alpha+\beta)\)
-
difference
Compute hyperbolic sine and hyperbolic cosine of angles difference.- Parameters:
schAlpha- \((\sinh \alpha, \cosh \alpha)\)schBeta- \((\sinh \beta, \cosh \beta)\)- Returns:
- \((\sinh \alpha+\beta, \cosh \alpha-\beta)\)
-