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

Method solution

test/float/trigonometric.cpp:136–138  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

134 : Test("Trigonometric::Cos::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
135 /// %Test whether \a x is solution
136 virtual MaybeType solution(const Assignment& x) const {
137 return eq(cos(x[0]), x[1]);
138 }
139 /// Extend assignment \a x
140 virtual bool extendAssignment(Assignment& x) const {
141 Gecode::FloatVal d = cos(x[0]);

Callers

nothing calls this directly

Calls 1

cosFunction · 0.50

Tested by

no test coverage detected