%Test whether \a x is solution
| 420 | : Test("Trigonometric::ATan::XX::"+s,1,d,st,CPLT_ASSIGNMENT,false) {} |
| 421 | /// %Test whether \a x is solution |
| 422 | virtual MaybeType solution(const Assignment& x) const { |
| 423 | return eq(atan(x[0]), x[0]); |
| 424 | } |
| 425 | /// Post constraint on \a x |
| 426 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 427 | Gecode::atan(home, x[0], x[0]); |