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

Method solution

test/float/transcendental.cpp:138–142  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

136 : Test("Transcendental::Log::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
137 /// %Test whether \a x is solution
138 virtual MaybeType solution(const Assignment& x) const {
139 if (x[0].max() < 0.0)
140 return MT_FALSE;
141 return eq(log(x[0]), x[1]);
142 }
143 /// Extend assignment \a x
144 virtual bool extendAssignment(Assignment& x) const {
145 if (x[0].max() < 0.0) return false;

Callers

nothing calls this directly

Calls 2

logFunction · 0.50
maxMethod · 0.45

Tested by

no test coverage detected