Skip to content

Commit

Permalink
auto generated
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgerrets committed Aug 7, 2024
1 parent db20159 commit 6e612c7
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core_functions/function_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static const StaticFunctionDefinition internal_functions[] = {
DUCKDB_SCALAR_FUNCTION(StartsWithOperatorFun),
DUCKDB_SCALAR_FUNCTION_SET_ALIAS(AbsFun),
DUCKDB_SCALAR_FUNCTION(AcosFun),
DUCKDB_SCALAR_FUNCTION(AcoshFun),
DUCKDB_SCALAR_FUNCTION_SET(AgeFun),
DUCKDB_SCALAR_FUNCTION_ALIAS(AggregateFun),
DUCKDB_SCALAR_FUNCTION(AliasFun),
Expand Down Expand Up @@ -97,8 +98,10 @@ static const StaticFunctionDefinition internal_functions[] = {
DUCKDB_SCALAR_FUNCTION(ArrayValueFun),
DUCKDB_SCALAR_FUNCTION(ASCIIFun),
DUCKDB_SCALAR_FUNCTION(AsinFun),
DUCKDB_SCALAR_FUNCTION(AsinhFun),
DUCKDB_SCALAR_FUNCTION(AtanFun),
DUCKDB_SCALAR_FUNCTION(Atan2Fun),
DUCKDB_SCALAR_FUNCTION(AtanhFun),
DUCKDB_AGGREGATE_FUNCTION_SET(AvgFun),
DUCKDB_SCALAR_FUNCTION_SET(BarFun),
DUCKDB_SCALAR_FUNCTION_ALIAS(Base64Fun),
Expand All @@ -121,6 +124,7 @@ static const StaticFunctionDefinition internal_functions[] = {
DUCKDB_SCALAR_FUNCTION(ChrFun),
DUCKDB_AGGREGATE_FUNCTION(CorrFun),
DUCKDB_SCALAR_FUNCTION(CosFun),
DUCKDB_SCALAR_FUNCTION(CoshFun),
DUCKDB_SCALAR_FUNCTION(CotFun),
DUCKDB_AGGREGATE_FUNCTION(CovarPopFun),
DUCKDB_AGGREGATE_FUNCTION(CovarSampFun),
Expand Down Expand Up @@ -325,6 +329,7 @@ static const StaticFunctionDefinition internal_functions[] = {
DUCKDB_SCALAR_FUNCTION_SET(SignFun),
DUCKDB_SCALAR_FUNCTION_SET(SignBitFun),
DUCKDB_SCALAR_FUNCTION(SinFun),
DUCKDB_SCALAR_FUNCTION(SinhFun),
DUCKDB_AGGREGATE_FUNCTION(SkewnessFun),
DUCKDB_SCALAR_FUNCTION_ALIAS(SplitFun),
DUCKDB_SCALAR_FUNCTION(SqrtFun),
Expand All @@ -348,6 +353,7 @@ static const StaticFunctionDefinition internal_functions[] = {
DUCKDB_AGGREGATE_FUNCTION_SET(SumNoOverflowFun),
DUCKDB_AGGREGATE_FUNCTION_ALIAS(SumkahanFun),
DUCKDB_SCALAR_FUNCTION(TanFun),
DUCKDB_SCALAR_FUNCTION(TanhFun),
DUCKDB_SCALAR_FUNCTION_SET(TimeBucketFun),
DUCKDB_SCALAR_FUNCTION(TimeTZSortKeyFun),
DUCKDB_SCALAR_FUNCTION_SET(TimezoneFun),
Expand Down
54 changes: 54 additions & 0 deletions src/include/duckdb/core_functions/scalar/math_functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,4 +396,58 @@ struct TruncFun {
static ScalarFunctionSet GetFunctions();
};

struct CoshFun {
static constexpr const char *Name = "cosh";
static constexpr const char *Parameters = "x";
static constexpr const char *Description = "Computes the hyperbolic cos of x";
static constexpr const char *Example = "cosh(1)";

static ScalarFunction GetFunction();
};

struct SinhFun {
static constexpr const char *Name = "sinh";
static constexpr const char *Parameters = "x";
static constexpr const char *Description = "Computes the hyperbolic sin of x";
static constexpr const char *Example = "sinh(1)";

static ScalarFunction GetFunction();
};

struct TanhFun {
static constexpr const char *Name = "tanh";
static constexpr const char *Parameters = "x";
static constexpr const char *Description = "Computes the hyperbolic tan of x";
static constexpr const char *Example = "tanh(1)";

static ScalarFunction GetFunction();
};

struct AcoshFun {
static constexpr const char *Name = "acosh";
static constexpr const char *Parameters = "x";
static constexpr const char *Description = "Computes the inverse hyperbolic cos of x";
static constexpr const char *Example = "acosh(0.5)";

static ScalarFunction GetFunction();
};

struct AsinhFun {
static constexpr const char *Name = "asinh";
static constexpr const char *Parameters = "x";
static constexpr const char *Description = "Computes the inverse hyperbolic sin of x";
static constexpr const char *Example = "asinh(0.5)";

static ScalarFunction GetFunction();
};

struct AtanhFun {
static constexpr const char *Name = "atanh";
static constexpr const char *Parameters = "x";
static constexpr const char *Description = "Computes the inverse hyperbolic tan of x";
static constexpr const char *Example = "atanh(0.5)";

static ScalarFunction GetFunction();
};

} // namespace duckdb

0 comments on commit 6e612c7

Please sign in to comment.