X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftime_antipode.cpp;h=3e5346ee54da6b41da2ced68455a25423fd8fce9;hp=2d64beef0afe57a1a79bdff1c899346b65524bba;hb=7e7beee2c946694130a484c923f6af8391867495;hpb=8710f8123e5f137fe32a34b5c4de9f5aca6e8d73 diff --git a/check/time_antipode.cpp b/check/time_antipode.cpp index 2d64beef..3e5346ee 100644 --- a/check/time_antipode.cpp +++ b/check/time_antipode.cpp @@ -12,11 +12,11 @@ * This program is based on work by * Isabella Bierenbaum and * Dirk Kreimer . - * For details, please ask for the diploma theses of Isabella Bierenbaum. + * For details, please see . */ /* - * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2002 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 @@ -442,7 +442,7 @@ static const node tree6(unsigned cuts=0) bool(cuts & 16))); } -static unsigned test_tree(node (*tree_generator)(unsigned=0)) +static unsigned test_tree(const node (*tree_generator)(unsigned=0)) { const int edges = tree_generator().total_edges(); const int vertices = edges+1; @@ -464,8 +464,10 @@ static unsigned test_tree(node (*tree_generator)(unsigned=0)) return 1; } else if (result.ldegree(x)!=-vertices || result.degree(x)!=0) { clog << "The antipode was miscalculated\nAntipode==" << result - << "\nshould run from x^(" << -vertices << ") to x^(0) but it runs from x^(" - << result.ldegree(x) << ") to x^(" << result.degree(x) << ")" << endl; + << "\nshould run from " << x << "^(" << -vertices << ") to " + << x << "^(0)" << "but it runs from " << x << "^(" + << result.ldegree(x) << ")" << "to " << x << "^(" + << result.degree(x) << ")" << endl; return 1; } return 0; @@ -477,7 +479,7 @@ unsigned time_antipode(void) timer jaeger_le_coultre; cout << "timing computation of antipodes in Yukawa theory" << flush; - clog << "-------computation of antipodes in Yukawa theory" << endl; + clog << "-------computation of antipodes in Yukawa theory:" << endl; if (do_test) { jaeger_le_coultre.start();