%Test whether \a x is solution
| 376 | : Test("Arithmetic::Pow::N::"+str(_n)+"::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false), n(_n) {} |
| 377 | /// %Test whether \a x is solution |
| 378 | virtual MaybeType solution(const Assignment& x) const { |
| 379 | return eq(pow(x[0],n), x[1]); |
| 380 | } |
| 381 | /// Post constraint on \a x |
| 382 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 383 | if (flip()) |