X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fexam_inifcns_nstdsums.cpp;h=35f9ddbbb32dddc698da42963b18ff4cdeeb7b8e;hp=188b1b4b0536268966a97cf77a12fa5aa2ca5121;hb=2c22412269ccfb551a27fd8081712b46c243cbac;hpb=ac5561f7d6d45ed711b37f60df757a984ede0531 diff --git a/check/exam_inifcns_nstdsums.cpp b/check/exam_inifcns_nstdsums.cpp index 188b1b4b..35f9ddbb 100644 --- a/check/exam_inifcns_nstdsums.cpp +++ b/check/exam_inifcns_nstdsums.cpp @@ -4,7 +4,7 @@ * functions. */ /* - * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -155,6 +155,14 @@ static unsigned inifcns_test_HLi() Digits = digitsbuf; + // conjugate test + numeric cdif = ex_to(H(lst(2,2,1),5.0-5.0*I) - H(lst(2,2,1),5.0+5.0*I)); + numeric cadd = ex_to(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; }