30namespace func_sketch::math {
36 "pow", [](
auto base,
auto exponent) {
44 "sqrt", [](
Real arg) {
return std::sqrt(arg); }));
50 "cbrt", [](
Real arg) {
return std::cbrt(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.
Definition of MathFunction class.
Declaration of functions to create power functions.
MathFunction pow_function()
Create pow function.
MathFunction sqrt_function()
Create sqrt function.
MathFunction cbrt_function()
Create cbrt function.
Definition of pow_number function.
auto pow_number(Base base, Exponent exponent)
Compute power for number types in this library.
Traits struct to handle acceptable number types.