X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftime_gammaseries.cpp;h=14f4c6c29cd7f785df5e346e7d9dfb3129cf0b3d;hp=3715f836bb334544ca9608e11ce8460e22f51acf;hb=630e59f66af9fcebb56a442f3aef433b0cc1c0e0;hpb=5b44febe31956b36b62cd3650f7c5249bbe8100c diff --git a/check/time_gammaseries.cpp b/check/time_gammaseries.cpp index 3715f836..14f4c6c2 100644 --- a/check/time_gammaseries.cpp +++ b/check/time_gammaseries.cpp @@ -3,7 +3,7 @@ * Some timings on series expansion of the Gamma function around a pole. */ /* - * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2009 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 @@ -20,7 +20,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "times.h" +#include "ginac.h" +#include "timer.h" +using namespace GiNaC; + +#include +#include +using namespace std; unsigned tgammaseries(unsigned order) { @@ -48,7 +54,6 @@ unsigned time_gammaseries() unsigned result = 0; cout << "timing Laurent series expansion of Gamma function" << flush; - clog << "-------Laurent series expansion of Gamma function:" << endl; vector sizes; vector times; @@ -66,12 +71,6 @@ unsigned time_gammaseries() cout << '.' << flush; } - if (!result) { - cout << " passed "; - clog << "(no output)" << endl; - } else { - cout << " failed "; - } // print the report: cout << endl << " order: "; for (vector::iterator i=sizes.begin(); i!=sizes.end(); ++i) @@ -83,3 +82,12 @@ unsigned time_gammaseries() return result; } + +extern void randomify_symbol_serials(); + +int main(int argc, char** argv) +{ + randomify_symbol_serials(); + cout << setprecision(2) << showpoint; + return time_gammaseries(); +}