source: Sophya/trunk/SophyaLib/BaseTools/smathconst.h@ 764

Last change on this file since 764 was 754, checked in by ansari, 26 years ago

Restruction de Sophya en modules plus petit (TArray , SkyMap, HiStats, ...)

Reza 2/3/2000

File size: 1.6 KB
Line 
1/* quelques constantes mathematiques utiles */
2#ifndef SMATHCONST_H_SEEN
3#define SMATHCONST_H_SEEN
4
5#include "machdefs.h"
6
7/* EA conflit entre les diverses copies de nbmath.h, nbconst.h... A nettoyer... */
8#undef Pi
9#undef Pis2
10#undef DeuxPi
11#undef SPi
12#undef S2Pi
13#undef Rac2
14#undef Log2
15#undef LnPi
16#undef LgPi
17#undef Ln10
18#undef DftoDm
19#undef Hln2pi
20#undef JourSec
21#undef AnSec
22
23#undef GRAND
24#undef GRAND2
25#undef IGRAND
26
27#define Pi (double) ( 3.14159265358979310e+00) /* c'est Pi */
28#define Pis2 (double) (1.57079632679489655) /* c'est Pi/2 */
29#define DeuxPi (double) ( 6.28318530717958620e+00) /* c'est 2*Pi */
30#define SPi (double) ( 1.77245385090551590e+00) /* c'est sqrt(Pi) */
31#define S2Pi (double) ( 2.50662827463100020e+00) /* c'est sqrt(2*Pi) */
32#define Rac2 (double) ( 1.41421356237309510e+00) /* c'est sqrt(2) */
33#define Log2 (double) ( 3.01029995663981200e-01) /* c'est log10(2) */
34#define LnPi (double) ( 1.14472988584940020e+00) /* c'est ln(Pi) */
35#define LgPi (double) ( 4.97149872694133850e-01) /* c'est log10(Pi) */
36#define Ln10 (double) ( 2.30258509299404590e+00) /* c'est ln(10) */
37#define DftoDm (double) ( 1.08573620475812940e+00) /* c'est 2.5/ln(10) */
38#define Hln2pi (double) ( 9.18938533204672670e-01) /* c'est Ln(2*pi)/2 */
39
40#define JourSec (float) (86400.000000) /* nombre de secondes dans 24H */
41#define AnSec (int) (31557600) /* nombre de secondes dans 365.25 jours */
42
43#define GRAND (float) (1.e+35)
44#define GRAND2 (double) (1.e+35)
45#define IGRAND (int_4) (2147483647)
46
47
48#endif
Note: See TracBrowser for help on using the repository browser.