22#include <boost/math/special_functions/gamma.hpp>
29namespace func_sketch::math {
34 "gamma", [](
Real arg) {
36 return boost::math::tgamma(arg);
37 }
catch (
const std::exception& e) {
38 return std::numeric_limits<Real>::quiet_NaN();
46 "lgamma", [](
Real arg) {
48 return boost::math::lgamma(arg);
49 }
catch (
const std::exception& e) {
50 return std::numeric_limits<Real>::quiet_NaN();
Definition of AcceptableTypes struct.
Class of mathematical functions.
Definitions of common types.
double Real
Type of real numbers in this project.
Declaration of functions to create gamma functions.
MathFunction lgamma_function()
Create lgamma function.
MathFunction gamma_function()
Create gamma function.
Definition of GeneralMathFunction class.
auto make_general_math_function(std::string name, FunctionType &&function)
Make a general mathematical function.
Definition of MathFunction class.
Traits struct to handle acceptable number types.