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

Method post

test/float/trigonometric.cpp:381–386  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

379 }
380 /// Post constraint on \a x
381 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
382 if (flip())
383 Gecode::atan(home, x[0], x[1]);
384 else
385 Gecode::rel(home, atan(x[0]) == x[1]);
386 }
387 };
388
389 /// %Test for atangent constraint where solution is ensured

Callers

nothing calls this directly

Calls 2

atanFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected