%Test whether \a x is solution
| 423 | : Test("Arithmetic::Pow::N::"+str(_n)+"::XX::"+s,1,d,st,CPLT_ASSIGNMENT,false) {} |
| 424 | /// %Test whether \a x is solution |
| 425 | virtual MaybeType solution(const Assignment& x) const { |
| 426 | return eq(pow(x[0],n), x[0]); |
| 427 | } |
| 428 | /// Post constraint on \a x |
| 429 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 430 | Gecode::pow(home, x[0], n, x[0]); |