mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
#include <Functions/FunctionFactory.h>
|
|
#include <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>();
|
|
}
|
|
|
|
}
|