]> www.ginac.de Git - ginac.git/blobdiff - check/time_antipode.cpp
- The dimension of indices is now treated as a kind of "effective" dimension
[ginac.git] / check / time_antipode.cpp
index 2d64beef0afe57a1a79bdff1c899346b65524bba..3e5346ee54da6b41da2ced68455a25423fd8fce9 100644 (file)
  *  This program is based on work by
  *      Isabella Bierenbaum <bierenbaum@thep.physik.uni-mainz.de> and
  *      Dirk Kreimer <dkreimer@bu.edu>.
- *  For details, please ask for the diploma theses of Isabella Bierenbaum.
+ *  For details, please see <http://www.arXiv.org/abs/hep-th/0111192>.
  */
 
 /*
- *  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();