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

Method solution

test/float/arithmetic.cpp:398–400  ·  view source on GitHub ↗

%Test whether \a x is solution

Source from the content-addressed store, hash-verified

396 : Test("Arithmetic::Pow::N::"+str(_n)+"::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false), n(_n) {}
397 /// %Test whether \a x is solution
398 virtual MaybeType solution(const Assignment& x) const {
399 return eq(pow(x[0],n), x[1]);
400 }
401 /// Extend assignment \a x
402 virtual bool extendAssignment(Assignment& x) const {
403 Gecode::FloatVal d = pow(x[0],n);

Callers

nothing calls this directly

Calls 1

powFunction · 0.50

Tested by

no test coverage detected