test/lp_test.cc
changeset 2353 c43f8802c90a
parent 2328 b4931ae52069
child 2363 2aabce558574
equal deleted inserted replaced
17:35124c1cd75d 18:da2f152aba66
   192     e=((p1+p2)+(p1-p2));
   192     e=((p1+p2)+(p1-p2));
   193     e.simplify();
   193     e.simplify();
   194     buf << "Coeff. of p2 should be 0";
   194     buf << "Coeff. of p2 should be 0";
   195     //    std::cout<<e[p1]<<e[p2]<<e[p3]<<std::endl;
   195     //    std::cout<<e[p1]<<e[p2]<<e[p3]<<std::endl;
   196     check(e.find(p2)==e.end(), buf.str());
   196     check(e.find(p2)==e.end(), buf.str());
   197 
   197     
   198      
   198      
   199 
   199 
   200 
   200 
   201     e=((p1+p2)+(p1-0.99*p2));
   201     e=((p1+p2)+(p1-0.99*p2));
       
   202     //e.prettyPrint(std::cout);
       
   203     //(e<=2).prettyPrint(std::cout);
   202     double tolerance=0.001;
   204     double tolerance=0.001;
   203     e.simplify(tolerance);
   205     e.simplify(tolerance);
   204     buf << "Coeff. of p2 should be 0.01";
   206     buf << "Coeff. of p2 should be 0.01";
   205     check(e[p2]>0, buf.str());
   207     check(e[p2]>0, buf.str());
   206     
   208