-
Notifications
You must be signed in to change notification settings - Fork 10
/
Integrator_if.h
28 lines (23 loc) · 972 Bytes
/
Integrator_if.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Integrator_if.h
* Author: cancian
*
* Created on 14 de Agosto de 2018, 13:54
*/
#ifndef INTEGRATOR_IF_H
#define INTEGRATOR_IF_H
class Integrator_if {
public:
virtual void setPrecision(double e) = 0;
virtual double getPrecision() = 0;
virtual double integrate(double min, double max, double (*f)(double, double), double p2) = 0;
virtual double integrate(double min, double max, double (*f)(double, double, double), double p2, double p3) = 0;
virtual double integrate(double min, double max, double (*f)(double, double, double, double), double p2, double p3, double p4) = 0;
virtual double integrate(double min, double max, double (*f)(double, double, double, double, double), double p2, double p3, double p4, double p5) = 0;
};
#endif /* INTEGRATOR_IF_H */