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

Method solution

test/float/trigonometric.cpp:197–199  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

195 : Test("Trigonometric::Tan::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
196 /// %Test whether \a x is solution
197 virtual MaybeType solution(const Assignment& x) const {
198 return eq(tan(x[0]), x[1]);
199 }
200 /// Extend assignment \a x
201 virtual bool extendAssignment(Assignment& x) const {
202 Gecode::FloatVal d = tan(x[0]);

Callers

nothing calls this directly

Calls 1

tanFunction · 0.50

Tested by

no test coverage detected