%Test whether \a x is solution
| 221 | : Test("Trigonometric::Tan::XX::"+s,1,d,st,CPLT_ASSIGNMENT,false) {} |
| 222 | /// %Test whether \a x is solution |
| 223 | virtual MaybeType solution(const Assignment& x) const { |
| 224 | return eq(tan(x[0]), x[0]); |
| 225 | } |
| 226 | /// Post constraint on \a x |
| 227 | virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) { |
| 228 | Gecode::tan(home, x[0], x[0]); |