2017-04-01 09:19:00 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionsMath.h>
|
2014-11-28 14:08:38 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2015-01-22 01:13:13 +00:00
|
|
|
const double EImpl::value = 2.7182818284590452353602874713526624977572470;
|
|
|
|
const double PiImpl::value = 3.1415926535897932384626433832795028841971693;
|
|
|
|
|
|
|
|
|
2014-11-28 14:08:38 +00:00
|
|
|
void registerFunctionsMath(FunctionFactory & factory)
|
|
|
|
{
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionE>();
|
|
|
|
factory.registerFunction<FunctionPi>();
|
|
|
|
factory.registerFunction<FunctionExp>();
|
|
|
|
factory.registerFunction<FunctionLog>();
|
|
|
|
factory.registerFunction<FunctionExp2>();
|
|
|
|
factory.registerFunction<FunctionLog2>();
|
|
|
|
factory.registerFunction<FunctionExp10>();
|
|
|
|
factory.registerFunction<FunctionLog10>();
|
|
|
|
factory.registerFunction<FunctionSqrt>();
|
|
|
|
factory.registerFunction<FunctionCbrt>();
|
|
|
|
factory.registerFunction<FunctionErf>();
|
|
|
|
factory.registerFunction<FunctionErfc>();
|
|
|
|
factory.registerFunction<FunctionLGamma>();
|
|
|
|
factory.registerFunction<FunctionTGamma>();
|
|
|
|
factory.registerFunction<FunctionSin>();
|
|
|
|
factory.registerFunction<FunctionCos>();
|
|
|
|
factory.registerFunction<FunctionTan>();
|
|
|
|
factory.registerFunction<FunctionAsin>();
|
|
|
|
factory.registerFunction<FunctionAcos>();
|
|
|
|
factory.registerFunction<FunctionAtan>();
|
|
|
|
factory.registerFunction<FunctionPow>();
|
2014-11-28 14:08:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|