Added check for harmonic polylog.
authorJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Tue, 6 Jan 2004 18:38:45 +0000 (18:38 +0000)
committerJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Tue, 6 Jan 2004 18:38:45 +0000 (18:38 +0000)
check/exam_inifcns_nstdsums.cpp

index 188b1b4b0536268966a97cf77a12fa5aa2ca5121..d0f7304dae04387c581ee234da5c6281a52ed2ad 100644 (file)
@@ -155,6 +155,14 @@ static unsigned inifcns_test_HLi()
 
        Digits = digitsbuf;
 
+       // conjugate test
+       numeric cdif = ex_to<numeric>(H(lst(2,2,1),5.0-5.0*I) - H(lst(2,2,1),5.0+5.0*I));
+       numeric cadd = ex_to<numeric>(H(lst(2,2,1),5.0-5.0*I) + H(lst(2,2,1),5.0+5.0*I));
+       if ((cdif.real() > prec) || (cadd.imag() > prec)) {
+               clog << "complex conjugation test of H({2,2,1},5.0-5.0*I) seems to be wrong: " << cdif << " " << cadd << endl;
+               result++;
+       }
+
        return result;
 }