main.cpp 688 Bytes
#include <ibex.h>
#include "integrale.h"

using namespace std;



void example(){
    cout << setprecision(15);
    ibex::Variable x(1);
    ibex::Function f(x, ibex::sin(x));
    ibex::Interval inf(0., 5.5);
    ibex::Interval sup(10, 15.);
    
    integrale example(inf, sup, &f, &x);
    
    cout << example << endl;
    example.construct_zeros();
    for (auto elem : *example.get_zeros_sup()){
        cout << elem << endl;
    }
    example.compute_integral();
    cout << "minimum: " << example.get_result()->first << endl;
    cout << "maximum: " << example.get_result()->second << endl;
    
}


int main(/*int argc, char * argv[]*/){
    example();
    return EXIT_SUCCESS;
}