Package org.apfloat
Class EulerHelper
- java.lang.Object
-
- org.apfloat.EulerHelper
-
class EulerHelper extends java.lang.ObjectHelper class for computing the Euler gamma using binary splitting and the Brent-McMillan formula.- Since:
- 1.11.0
- Version:
- 1.11.0
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEulerHelper(Apfloat n2, long precision, int radix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Apfloateuler(long precision, int radix)private voideuler(long a, long b, ApfloatMath.ApfloatHolder P, ApfloatMath.ApfloatHolder Q, ApfloatMath.ApfloatHolder R, ApfloatMath.ApfloatHolder S, ApfloatMath.ApfloatHolder T, ApfloatMath.ApfloatHolder U, ApfloatMath.ApfloatHolder V)
-
-
-
Field Detail
-
ALPHA
private static final double ALPHA
- See Also:
- Constant Field Values
-
n2
private final Apfloat n2
-
precision
private final long precision
-
radix
private final int radix
-
-
Constructor Detail
-
EulerHelper
private EulerHelper(Apfloat n2, long precision, int radix) throws ApfloatRuntimeException
- Throws:
ApfloatRuntimeException
-
-
Method Detail
-
euler
public static Apfloat euler(long precision, int radix) throws ApfloatRuntimeException
- Throws:
ApfloatRuntimeException
-
euler
private void euler(long a, long b, ApfloatMath.ApfloatHolder P, ApfloatMath.ApfloatHolder Q, ApfloatMath.ApfloatHolder R, ApfloatMath.ApfloatHolder S, ApfloatMath.ApfloatHolder T, ApfloatMath.ApfloatHolder U, ApfloatMath.ApfloatHolder V) throws ApfloatRuntimeException- Throws:
ApfloatRuntimeException
-
-