1 // $Id: EvtDiLog.hh,v 1.3 2009-03-16 16:44:33 robbep Exp $
2 #ifndef EVTGENBASE_EVTDILOG_HH
3 #define EVTGENBASE_EVTDILOG_HH 1
7 /** @namespace EvtDiLog EvtDiLog.hh EvtGenBase/EvtDiLog.hh
8 * Dilogarithm function (replaces CERNLIB DDILOG)
10 * @author Patrick Robbe
14 double DiLog( double x ) ;
16 // constants for computation
17 static const double Z1 = 1. ;
18 static const double HF = Z1 / 2. ;
19 static const double PI = 3.14159265358979324 ;
20 static const double PI3 = PI * PI / 3. ;
21 static const double PI6 = PI * PI / 6. ;
22 static const double PI12 = PI * PI / 12. ;
23 static const double C[ 20 ] = {
26 -0.01858843665014592 ,
28 -0.00014304184442340 ,
30 -0.00000190784959387 ,
32 -0.00000003193341274 ,
34 -0.00000000060578480 ,
36 -0.00000000001244332 ,
38 -0.00000000000027007 ,
40 -0.00000000000000610 ,
42 -0.00000000000000014 ,
43 0.00000000000000002 } ;
45 #endif // EVTGENBASE_EVTDILOG_HH