main.cpp 412 Bytes
#include <iostream>

#include "integralii.h"

int main(){
    cout << setprecision(15);
    ibex::Variable x(1);
    ibex::Function f(x, ibex::sin(x));
    ibex::Interval inf_inter(0, 5);
    ibex::Interval sup_inter(9, 10);
    
    IntegralII integ_inter(inf_inter, sup_inter, &f);
    integ_inter.compute_integral();
    cout << "Result: " << endl;
    cout << integ_inter << endl;
    return EXIT_SUCCESS;
}