%Test whether \a x is solution
| 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)) |