Package org.hipparchus.util
Class SinhCosh
- java.lang.Object
-
- org.hipparchus.util.SinhCosh
-
public class SinhCosh extends Object
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:
FastMath.sinhCosh(double)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cosh()
Get the value of the hyperbolic cosine.static SinhCosh
difference(SinhCosh schAlpha, SinhCosh schBeta)
Compute hyperbolic sine and hyperbolic cosine of angles difference.double
sinh()
Get the value of the hyperbolic sine.static SinhCosh
sum(SinhCosh schAlpha, SinhCosh schBeta)
Compute hyperbolic sine and hyperbolic cosine of angles sum.
-
-
-
Method Detail
-
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
public static SinhCosh sum(SinhCosh schAlpha, SinhCosh schBeta)
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
public static SinhCosh difference(SinhCosh schAlpha, SinhCosh schBeta)
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)\)
-
-