%Test whether \a x is solution
| 160 | : Test("Trigonometric::Cos::XX::"+s,1,d,st,CPLT_ASSIGNMENT,false) {} |
| 161 | /// %Test whether \a x is solution |
| 162 | virtual MaybeType solution(const Assignment& x) const { |
| 163 | return eq(cos(x[0]), x[0]); |
| 164 | } |
| 165 | /// Post constraint on \a x |
| 166 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 167 | Gecode::cos(home, x[0], x[0]); |