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

Method solution

test/float/transcendental.cpp:75–77  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

73 : Test("Transcendental::Exp::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
74 /// %Test whether \a x is solution
75 virtual MaybeType solution(const Assignment& x) const {
76 return eq(exp(x[0]), x[1]);
77 }
78 /// Extend assignment \a x
79 virtual bool extendAssignment(Assignment& x) const {
80 Gecode::FloatVal d = exp(x[0]);

Callers

nothing calls this directly

Calls 1

expFunction · 0.50

Tested by

no test coverage detected