Page MenuHomec4science

Function.hpp
No OneTemporary

File Metadata

Created
Mon, Feb 24, 02:05

Function.hpp

//
// Created by Pauline Ollitrault on 28.11.16.
//
#ifndef NUMINT_FUNCTIONMANAGER_HPP
#define NUMINT_FUNCTIONMANAGER_HPP
#include <string>
#include <cassert>
#include <vector>
class Function {
public:
//Constructors
Function();
Function(const std::string function);
//Setters
void SetExactValue(const double exact_value);
virtual void SetFunction(const std::string function); //Initializes the function
//Getters
double GetExactValue() const;
//Function Evaluators
virtual double Evaluate(double x);
std::vector<double> EvaluateVect(std::vector<double> V);
private:
double m_exact_value;
};
#endif //NUMINT_FUNCTIONMANAGER_HPP

Event Timeline