SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu
Class Constant

java.lang.Object
  extended by com.numericalmethod.suanshu.Constant

public class Constant
extends java.lang.Object

This class lists the global parameters and constants in this library.


Field Summary
static double EPSILON
          the default epsilon used in this library
static double EULER_MASCHERONI
          the Euler–Mascheroni constant
static double GOLDEN_RATIO
          the Golden ratio
static double MACH_EPS
          the machine epsilon This is the difference between 1 and the smallest exactly representable number greater than 1.
static int MACH_SCALE
          the scale for the machine epsilon
static double PI_SQ
          π2
static double ROOT_2
          √2
static double ROOT_2_PI
          √(2π)
static double ROOT_PI
          √π
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MACH_EPS

public static final double MACH_EPS
the machine epsilon

This is the difference between 1 and the smallest exactly representable number greater than 1.

See Also:
Wikipedia: Machine epsilon

MACH_SCALE

public static final int MACH_SCALE
the scale for the machine epsilon


EPSILON

public static final double EPSILON
the default epsilon used in this library


ROOT_2

public static final double ROOT_2
√2


ROOT_2_PI

public static final double ROOT_2_PI
√(2π)


ROOT_PI

public static final double ROOT_PI
√π


PI_SQ

public static final double PI_SQ
π2

See Also:
Constant Field Values

EULER_MASCHERONI

public static final double EULER_MASCHERONI
the Euler–Mascheroni constant

See Also:
Wikipedia: Euler–Mascheroni constant, Constant Field Values

GOLDEN_RATIO

public static final double GOLDEN_RATIO
the Golden ratio

See Also:
Wikipedia: Golden ratio

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.