#include #include #include #include using std::vector; using std::log; Log::Log () : ScalarFunc ("log", 1) { } double Log::eval (vector const &args) const { return log (*args[0]->value()); } bool Log::checkParameterValue (vector const &args) const { return *args[0]->value() >= 0; }