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

Last change on this file since 4005 was 1783, checked in by aubourg, 24 years ago

pour compilation darwin (MacOS X 10.1.1)

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