KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > maths > NumericalConstants


1 package JSci.maths;
2
3 /**
4 * A collection of useful numbers (stored to maximum precision).
5 * @version 1.0
6 * @author Mark Hale
7 */

8 public interface NumericalConstants {
9         /**
10         * Square root of 2.
11         */

12         double SQRT2=1.4142135623730950488016887242096980785696718753769;
13         /**
14         * Two times <img border=0 alt="pi" SRC="doc-files/pi.gif">.
15         * @jsci.planetmath Pi
16         */

17         double TWO_PI=6.2831853071795864769252867665590057683943387987502;
18         /**
19         * Square root of 2<img border=0 alt="pi" SRC="doc-files/pi.gif">.
20         */

21         double SQRT2PI=2.5066282746310005024157652848110452530069867406099;
22         /**
23         * Natural logarithm of 10.
24         */

25         double LOG10=2.30258509299404568401799145468436420760110148862877;
26         /**
27         * Euler's gamma constant.
28         * @jsci.planetmath EulersConstant
29         */

30         double GAMMA=0.57721566490153286060651209008240243104215933593992;
31         /**
32         * Golden ratio.
33         * @jsci.planetmath GoldenRatio
34         */

35         double GOLDEN_RATIO=1.6180339887498948482045868343656381177203091798058;
36 }
37
38
Popular Tags