Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102776103
Function.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 24, 02:05
Size
686 B
Mime Type
text/x-c++
Expires
Wed, Feb 26, 02:05 (2 d)
Engine
blob
Format
Raw Data
Handle
24421464
Attached To
R1695 PCSC - Numerical Integration - Ollitrault Rouaze
Function.hpp
View Options
//
// 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
Log In to Comment