26 lines
374 B
C
26 lines
374 B
C
|
//
|
||
|
// Created by quentin on 9/13/22.
|
||
|
//
|
||
|
|
||
|
#ifndef BUDGET_POLYNOMIALFUNCTION_H
|
||
|
#define BUDGET_POLYNOMIALFUNCTION_H
|
||
|
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
namespace Budget::Utilities {
|
||
|
class PolynomialFunction {
|
||
|
private:
|
||
|
public:
|
||
|
explicit PolynomialFunction(std::vector<double> a);
|
||
|
|
||
|
double get(double x);
|
||
|
|
||
|
private:
|
||
|
std::vector<double> a;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|
||
|
#endif //BUDGET_POLYNOMIALFUNCTION_H
|