equal
deleted
inserted
replaced
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 |