ClickHouse/dbms/src/Functions/FunctionsMath.cpp
2015-01-22 04:13:13 +03:00

37 lines
1.2 KiB
C++

#include <DB/Functions/FunctionFactory.h>
#include <DB/Functions/FunctionsMath.h>
namespace DB
{
const double EImpl::value = 2.7182818284590452353602874713526624977572470;
const double PiImpl::value = 3.1415926535897932384626433832795028841971693;
void registerFunctionsMath(FunctionFactory & factory)
{
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>();
}
}