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

Method solution

test/float/trigonometric.cpp:396–398  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

394 : Test("Trigonometric::ATan::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
395 /// %Test whether \a x is solution
396 virtual MaybeType solution(const Assignment& x) const {
397 return eq(atan(x[0]), x[1]);
398 }
399 /// Extend assignment \a x
400 virtual bool extendAssignment(Assignment& x) const {
401 Gecode::FloatVal d = atan(x[0]);

Callers

nothing calls this directly

Calls 1

atanFunction · 0.50

Tested by

no test coverage detected