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

Method post

test/float/trigonometric.cpp:182–187  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

180 }
181 /// Post constraint on \a x
182 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
183 if (flip())
184 Gecode::tan(home, x[0], x[1]);
185 else
186 Gecode::rel(home, tan(x[0]) == x[1]);
187 }
188 };
189
190 /// %Test for tangent constraint where solution is ensured

Callers

nothing calls this directly

Calls 2

tanFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected