27namespace func_sketch::math {
32 "real", [](
Complex arg) {
return std::real(arg); }));
38 "imag", [](
Complex arg) {
return std::imag(arg); }));
44 "arg", [](
Complex arg) {
return std::arg(arg); }));
50 "conj", [](
Complex arg) {
return std::conj(arg); }));
Definition of AcceptableTypes struct.
Class of mathematical functions.
Definitions of common types.
std::complex< Real > Complex
Type of complex numbers in this project.
Declaration of functions for complex numbers.
MathFunction arg_function()
Create arg function.
MathFunction imag_function()
Create imag function.
MathFunction real_function()
Create real function.
MathFunction conj_function()
Create conj 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.