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

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

Ajout de l'argument bool zero ds NDataBlock<T>::Alloc()
Fonction pour construire un message d'exception avec num de ligne et
nom de fichier ds pexceptions.h .cc

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