MCPcopy Create free account
hub / github.com/Gecode/gecode / solution

Method solution

test/float/trigonometric.cpp:223–225  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

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]);

Callers

nothing calls this directly

Calls 1

tanFunction · 0.50

Tested by

no test coverage detected