print_tree: only print the "nops=" line when nops() > 0
[ginac.git] / check / time_dennyfliegner.cpp
index 66531bdcb2170e3dd8349b75ef36041a35bf64b9..5920b4336ffd4639b3ddc9c96d5c990706a4b99c 100644 (file)
@@ -42,7 +42,7 @@ static unsigned expand_subs(unsigned size)
        
        // prepare aux so it will swallow anything but a1^2:
        aux = -e + a[0] + a[1];
        
        // prepare aux so it will swallow anything but a1^2:
        aux = -e + a[0] + a[1];
-       e = pow(e,2).expand().subs(a[0]==aux).expand();
+       e = pow(e,2).expand().subs(a[0]==aux, subs_options::no_pattern).expand();
        
        if (e != pow(a[1],2)) {
                clog << "Denny Fliegner's quick consistency check erroneously returned "
        
        if (e != pow(a[1],2)) {
                clog << "Denny Fliegner's quick consistency check erroneously returned "
@@ -64,10 +64,10 @@ unsigned time_dennyfliegner()
        vector<double> times;
        timer breitling;
        
        vector<double> times;
        timer breitling;
        
-       sizes.push_back(25);
        sizes.push_back(50);
        sizes.push_back(100);
        sizes.push_back(200);
        sizes.push_back(50);
        sizes.push_back(100);
        sizes.push_back(200);
+       sizes.push_back(500);
        
        for (vector<unsigned>::iterator i=sizes.begin(); i!=sizes.end(); ++i) {
                breitling.start();
        
        for (vector<unsigned>::iterator i=sizes.begin(); i!=sizes.end(); ++i) {
                breitling.start();