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

Method solution

test/float/trigonometric.cpp:377–379  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

375 : Test("Trigonometric::ATan::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
376 /// %Test whether \a x is solution
377 virtual MaybeType solution(const Assignment& x) const {
378 return eq(atan(x[0]), x[1]);
379 }
380 /// Post constraint on \a x
381 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
382 if (flip())

Callers

nothing calls this directly

Calls 1

atanFunction · 0.50

Tested by

no test coverage detected