29namespace func_sketch::math {
34 "log", [](
Real arg) {
return std::log(arg); }));
40 "log1p", [](
Real arg) {
return std::log1p(arg); }));
46 "log10", [](
Real arg) {
return std::log10(arg); }));
52 "log2", [](
Real arg) {
return std::log2(arg); }));
Definition of AcceptableTypes struct.
Class of mathematical functions.
Definitions of common types.
double Real
Type of real numbers in this project.
Definition of GeneralMathFunction class.
auto make_general_math_function(std::string name, FunctionType &&function)
Make a general mathematical function.
Declaration of functions to create logarithmic functions.
MathFunction log10_function()
Create log10 function.
MathFunction log2_function()
Create log2 function.
MathFunction log_function()
Create log function.
MathFunction log1p_function()
Create log1p function.
Definition of MathFunction class.
Traits struct to handle acceptable number types.