7 // Define a polynomial function
8 // The factors are given at construction time, in a C-style string,
9 // separated by commas (eg. "1, 2, 3" for x^2 + 2x +3).
12 cost_func(const char* param);
14 cost_func& operator=(const cost_func& ref);
16 double operator()(double amount) const;
17 std::string to_string();
23 #endif // !COST_FUNC_H