]> www.ginac.de Git - ginac.git/blobdiff - check/time_lw_H.cpp
* Fix typo in comment.
[ginac.git] / check / time_lw_H.cpp
index 83fdf80975c5d123824cef11173e3963480c85c8..d17b729876833561c33758e75565428efb034930 100644 (file)
@@ -4,7 +4,7 @@
  *  Lewis and Michael Wester. */
 
 /*
- *  GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2007 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
@@ -18,7 +18,7 @@
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
 #include "times.h"
@@ -44,7 +44,7 @@ static unsigned test(unsigned n)
 
        ex hilbdet = 1;
        for (unsigned r=0; r<n; ++r)
-           hilbdet *= pow(factorial(r),3)/(factorial(r+n));
+               hilbdet *= pow(factorial(r),3)/(factorial(r+n));
 
        if (det != hilbdet) {
                clog << "determinant of " << n << "x" << n << " erroneously returned " << det << endl;
@@ -77,7 +77,7 @@ unsigned time_lw_H()
        } else {
                cout << " failed ";
        }
-       cout << int(1000*(time/count))*0.001 << 's' << endl;
+       cout << time/count << 's' << endl;
 
        return result;
 }