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