The following example show how to integrate differential inclusions with two different methods.
#include <iostream>
IMap f(
"par:a,b;var:x,y,z;fun:-(y+z),x+b*y,b+z*(x-a);");
double eps = 1.0e-4;
IMap perturb(
"par:e;var:x,y,z;fun:e,e,e;");
perturb.setParameter(
"e",
DInterval(-eps, eps));
double timeStep = 1. / 512.;
cwDiffInclSolver.setStep(timeStep);
lnDiffInclSolver.setStep(timeStep);
x1[0] = 0.0; x1[1] = -10.3; x1[2] = 0.03;
cwSet(x1);
int numberOfSteps = 10;
for(int i = 0; i < numberOfSteps; ++i) {
lnSet.move(lnDiffInclSolver);
cwSet.move(cwDiffInclSolver);
}
std::cout.precision(16);
std::cout << "\n\n Method based on logarithmic norms : \n " << lnResult
<<
"\n diam = " <<
maxDiam(lnResult) <<
"\n";
std::cout << "\n\n Method based on component wise estimates : \n " << cwResult
<<
"\n diam = " <<
maxDiam(cwResult) <<
"\n";
}
return 0;
}
Class for rigorous integration of differential inclusions.
Definition: DiffInclusionCW.h:40
Class for rigorous integration of differential inclusions.
Definition: DiffInclusionLN.h:40
Set representation for differential inclusions based on capd::dynset::Rect2Set class.
Definition: InclRect2Set.h:37
A multi map for differential inclusions.
Definition: MultiMap.h:44
This class is used to represent a map .
Definition: Map.h:125
void RosslerExample()
In this example we integrate differential inclusion based on rossler equation x' in -(y+z) + [e] y' i...
Definition: diffInclExample.cpp:23
int main()
Definition: diffInclExample.cpp:73
int order
Definition: tayltst.cpp:31
IObject::ScalarType maxDiam(const IObject &v)
returns the upper bound for the biggest diameter of IntervalObject (vector or matrix) coordinates
Definition: iobject.hpp:52
Definition: ApplicationDesc.h:23
capd::vectalg::Vector< capd::DInterval, CAPD_DEFAULT_DIMENSION > IVector
Definition: typedefs.h:33
capd::vectalg::MaxNorm< IVector, IMatrix > IMaxNorm
Definition: typedefs.h:54
capd::vectalg::EuclLNorm< IVector, IMatrix > IEuclLNorm
Definition: typedefs.h:56
::capd::filib::Interval< double, ::filib::native_directed, ::filib::i_mode_normal > DInterval
Definition: lib.h:51