24#include <unordered_map>
28namespace func_sketch::math {
56 [[nodiscard]] std::optional<Number>
get(
const std::string& name)
const {
Class of lists of constants.
std::unordered_map< std::string, Number > constants_
List of constants.
void emplace(const std::string &name, Number value)
Append a constant to the list.
std::optional< Number > get(const std::string &name) const
Get a constant from the list.
ConstantList()=default
Constructor.
Definitions of common types.
std::variant< Integer, Real, Complex > Number
Type of numbers.
ConstantList generate_constant_list()
Generate a list of built-in constants.