1 // -*- mode:C++ ; compile-command: "g++ -I.. -g gausspol.o sym2poly.o index.o input_lexer.o input_parser.o gaussint.o identificateur.o unary.o modpoly.o modfactor.o usual.o symbolic.o derive.o intg.o series.o subst.o vecteur.o moyal.o ifactor.o alg_ext.o normalize.cc -lgmp" -*-
2
3 /*
4 * Copyright (C) 2000 B. Parisse, Institut Fourier, 38402 St Martin d'Heres
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 /* for profiler use -pg compile option then
21 a.out
22 then
23 gprof > test.gp
24 and
25 emacs test.gp &
26 */
27
28 #include "sym2poly.h"
29 #include <iostream>
30 #include <time.h>
31
32
33 using namespace giac;
34
main(int ARGC,char * ARGV[])35 int main(int ARGC, char *ARGV[]){
36 vecteur v,l;
37 readargs(ARGC,ARGV,l,v);
38 clock_t start, end;
39 vecteur::const_iterator it=v.begin(),itend=v.end();
40 for (;it!=itend;++it){
41 start = clock();
42 cout << normal(*it) << " ";
43 end = clock();
44 cout << "# Time" << double(end-start)/CLOCKS_PER_SEC << endl;
45 }
46 }
47
48