Package org.hipparchus.util
Class FieldSinhCosh<T>
- java.lang.Object
-
- org.hipparchus.util.FieldSinhCosh<T>
-
- Type Parameters:
T
- the type of the field elements
public class FieldSinhCosh<T> 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)
-
-
Constructor Summary
Constructors Constructor Description FieldSinhCosh(T sinh, T cosh)
Simple constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
cosh()
Get the value of the hyperbolic cosine.static <S extends CalculusFieldElement<S>>
FieldSinhCosh<S>difference(FieldSinhCosh<S> schAlpha, FieldSinhCosh<S> schBeta)
Compute hyperbolic sine and hyperbolic cosine of angles difference.T
sinh()
Get the value of the hyperbolic sine.static <S extends CalculusFieldElement<S>>
FieldSinhCosh<S>sum(FieldSinhCosh<S> schAlpha, FieldSinhCosh<S> schBeta)
Compute hyperbolic sine and hyperbolic cosine of angles sum.
-
-
-
Method Detail
-
sinh
public T sinh()
Get the value of the hyperbolic sine.- Returns:
- value of the hyperbolic sine
-
cosh
public T cosh()
Get the value of the hyperbolic cosine.- Returns:
- value of the hyperbolic cosine
-
sum
public static <S extends CalculusFieldElement<S>> FieldSinhCosh<S> sum(FieldSinhCosh<S> schAlpha, FieldSinhCosh<S> schBeta)
Compute hyperbolic sine and hyperbolic cosine of angles sum.- Type Parameters:
S
- the type of the field elements- Parameters:
schAlpha
- \((\sinh \alpha, \cosh \alpha)\)schBeta
- \((\sinh \beta, \cosh \beta)\)- Returns:
- \((\sinh \alpha+\beta, \cosh \alpha+\beta)\)
-
difference
public static <S extends CalculusFieldElement<S>> FieldSinhCosh<S> difference(FieldSinhCosh<S> schAlpha, FieldSinhCosh<S> schBeta)
Compute hyperbolic sine and hyperbolic cosine of angles difference.- Type Parameters:
S
- the type of the field elements- Parameters:
schAlpha
- \((\sinh \alpha, \cosh \alpha)\)schBeta
- \((\sinh \beta, \cosh \beta)\)- Returns:
- \((\sinh \alpha+\beta, \cosh \alpha-\beta)\)
-
-