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

Method solution

test/float/transcendental.cpp:205–209  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

203 : Test("Transcendental::Log::N::"+str(_base)+"::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false), base(_base) {}
204 /// %Test whether \a x is solution
205 virtual MaybeType solution(const Assignment& x) const {
206 if ((x[0].max() <= 0.0) || (base <= 0.0))
207 return MT_FALSE;
208 return eq(log(x[0]) / log(base), x[1]);
209 }
210 /// Extend assignment \a x
211 virtual bool extendAssignment(Assignment& x) const {
212 if ((x[0].max() <= 0.0) || (base <= 0.0))

Callers

nothing calls this directly

Calls 2

logFunction · 0.50
maxMethod · 0.45

Tested by

no test coverage detected