org.ojalgo.constant

## Class PrimitiveMath

• ```public abstract class PrimitiveMath
extends Object```
• ### Field Summary

Fields
Modifier and Type Field and Description
`static double` `E`
`static double` `EIGHT`
`static double` `EIGHTH`
`static double` `ELEVEN`
`static double` `ELEVENTH`
`static double` `FITH`
`static double` `FIVE`
`static double` `FOUR`
`static double` `HALF`
`static double` `HALF_PI`
`static double` `HUNDRED`
`static double` `HUNDREDTH`
`static double` `MACHINE_EPSILON`
`static double` `MACHINE_LARGEST`
`static double` `MACHINE_SMALLEST`
Refers to "min normal" rather than "min value"
`static double` `NaN`
`static double` `NEG`
`static double` `NEGATIVE_INFINITY`
`static double` `NINE`
`static double` `NINTH`
`static double` `ONE`
`static double` `PI`
`static double` `POSITIVE_INFINITY`
`static long[]` `POWERS_OF_2`
`static double` `QUARTER`
`static double` `SEVEN`
`static double` `SEVENTH`
`static double` `SIX`
`static double` `SIXTH`
`static double` `SQRT_PI`
`static double` `SQRT_TWO`
`static double` `SQRT_TWO_PI`
`static double` `TEN`
`static double` `TENTH`
`static double` `THIRD`
`static double` `THOUSAND`
`static double` `THOUSANDTH`
`static double` `THREE`
`static double` `TINY`
Deprecated.
`static double` `TWELFTH`
`static double` `TWELVE`
`static double` `TWO`
`static double` `TWO_PI`
`static double` `ZERO`
• ### Method Summary

All Methods
Modifier and Type Method and Description
`static int` `getPrimeNumber(int index)`
`static boolean` `isPowerOf2(long value)`
`static int` `powerOf2Larger(long value)`
`static int` `powerOf2Smaller(long value)`
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Field Detail

• #### ZERO

`public static final double ZERO`
• #### ONE

`public static final double ONE`
• #### TWO

`public static final double TWO`
• #### THREE

`public static final double THREE`
• #### FOUR

`public static final double FOUR`
• #### FIVE

`public static final double FIVE`
• #### SIX

`public static final double SIX`
• #### SEVEN

`public static final double SEVEN`
• #### EIGHT

`public static final double EIGHT`
• #### NINE

`public static final double NINE`
• #### TEN

`public static final double TEN`
• #### ELEVEN

`public static final double ELEVEN`
• #### TWELVE

`public static final double TWELVE`
• #### HUNDRED

`public static final double HUNDRED`
• #### THOUSAND

`public static final double THOUSAND`
• #### NEG

`public static final double NEG`
• #### HALF

`public static final double HALF`
• #### THIRD

`public static final double THIRD`
• #### QUARTER

`public static final double QUARTER`
• #### FITH

`public static final double FITH`
• #### SIXTH

`public static final double SIXTH`
• #### SEVENTH

`public static final double SEVENTH`
• #### EIGHTH

`public static final double EIGHTH`
• #### NINTH

`public static final double NINTH`
• #### TENTH

`public static final double TENTH`
• #### ELEVENTH

`public static final double ELEVENTH`
• #### TWELFTH

`public static final double TWELFTH`
• #### HUNDREDTH

`public static final double HUNDREDTH`
• #### THOUSANDTH

`public static final double THOUSANDTH`
• #### E

`public static final double E`
• #### PI

`public static final double PI`
• #### HALF_PI

`public static final double HALF_PI`
• #### TWO_PI

`public static final double TWO_PI`
• #### SQRT_TWO

`public static final double SQRT_TWO`
• #### SQRT_PI

`public static final double SQRT_PI`
• #### SQRT_TWO_PI

`public static final double SQRT_TWO_PI`
• #### POSITIVE_INFINITY

`public static final double POSITIVE_INFINITY`
Constant Field Values
• #### NEGATIVE_INFINITY

`public static final double NEGATIVE_INFINITY`
Constant Field Values
• #### NaN

`public static final double NaN`
Constant Field Values
• #### MACHINE_LARGEST

`public static final double MACHINE_LARGEST`
Constant Field Values
• #### MACHINE_SMALLEST

`public static final double MACHINE_SMALLEST`
Refers to "min normal" rather than "min value"
Constant Field Values
• #### MACHINE_EPSILON

`public static final double MACHINE_EPSILON`
• #### TINY

```@Deprecated
public static final double TINY```
Deprecated.
≈ 1.6E-291
• #### POWERS_OF_2

`public static final long[] POWERS_OF_2`
• ### Method Detail

`public static final int getPrimeNumber(int index)`
• #### isPowerOf2

`public static final boolean isPowerOf2(long value)`
• #### powerOf2Larger

`public static final int powerOf2Larger(long value)`
Returns:
The smallest integer exponent so that 2^exp >= value.
• #### powerOf2Smaller

`public static final int powerOf2Smaller(long value)`
Returns:
The largest integer exponent so that 2^exp <= value.