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

Method solution

test/float/trigonometric.cpp:422–424  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

atanFunction · 0.50

Tested by

no test coverage detected