29namespace func_sketch::math {
34 "sin", [](
Real arg) {
return std::sin(arg); }));
40 "cos", [](
Real arg) {
return std::cos(arg); }));
46 "tan", [](
Real arg) {
return std::tan(arg); }));
52 "asin", [](
Real arg) {
return std::asin(arg); }));
58 "acos", [](
Real arg) {
return std::acos(arg); }));
64 "atan", [](
Real arg) {
return std::atan(arg); }));
70 "atan2", [](
Real y_value,
Real x_value) {
71 return std::atan2(y_value, x_value);
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.
Traits struct to handle acceptable number types.
Declaration of functions to create trigonometric functions.
MathFunction cos_function()
Create cos function.
MathFunction acos_function()
Create acos function.
MathFunction asin_function()
Create asin function.
MathFunction tan_function()
Create tan function.
MathFunction sin_function()
Create sin function.
MathFunction atan_function()
Create atan function.
MathFunction atan2_function()
Create atan2 function.