%Test whether \a x is solution
| 396 | : Test("Arithmetic::Pow::N::"+str(_n)+"::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false), n(_n) {} |
| 397 | /// %Test whether \a x is solution |
| 398 | virtual MaybeType solution(const Assignment& x) const { |
| 399 | return eq(pow(x[0],n), x[1]); |
| 400 | } |
| 401 | /// Extend assignment \a x |
| 402 | virtual bool extendAssignment(Assignment& x) const { |
| 403 | Gecode::FloatVal d = pow(x[0],n); |