36 #ifndef ACADO_TOOLKIT_ACADO_UTILS_HPP 37 #define ACADO_TOOLKIT_ACADO_UTILS_HPP 49 #if (defined __MINGW32__ || defined __MINGW64__) 50 namespace std {
namespace tr1 {
using namespace std; } }
51 #endif // (defined __MINGW32__ || defined __MINGW64__) 54 #define M_PI 3.14159265358979323846 63 double acadoDiv(
double nom,
double den );
66 double acadoMod(
double nom,
double den );
72 double acadoMax(
const double x,
const double y );
78 double acadoMin(
const double x,
const double y );
121 for (
unsigned el = 0; el < _value.size(); ++el)
133 if (x - 10.0 < -
INFTY)
136 if (x + 10.0 >
INFTY)
153 #endif // ACADO_TOOLKIT_ACADO_UTILS_HPP
BooleanType acadoIsZero(double x, double TOL=EQUALITY_EPS)
BEGIN_NAMESPACE_ACADO BooleanType acadoIsInteger(double x)
USING_NAMESPACE_ACADO typedef TaylorVariable< Interval > T
BooleanType acadoIsEqual(double x, double y, double TOL=EQUALITY_EPS)
BooleanType acadoIsFinite(double x, double TOL=0.1)
int acadoRoundAway(double x)
BooleanType acadoIsStrictlyGreater(double x, double y, double TOL=EQUALITY_EPS)
double acadoMod(double nom, double den)
int acadoFactorial(int n)
#define CLOSE_NAMESPACE_ACADO
int acadoMin(const int x, const int y)
BooleanType acadoIsNegative(double x, double TOL=EQUALITY_EPS)
BooleanType acadoIsGreater(double x, double y, double TOL=EQUALITY_EPS)
BooleanType acadoIsSmaller(double x, double y, double TOL=EQUALITY_EPS)
BooleanType acadoIsPositive(double x, double TOL=EQUALITY_EPS)
BooleanType acadoIsInfty(double x, double TOL=0.1)
BooleanType isInfty(const double x)
int acadoMax(const int x, const int y)
const double EQUALITY_EPS
#define BEGIN_NAMESPACE_ACADO
BooleanType acadoIsStrictlySmaller(double x, double y, double TOL=EQUALITY_EPS)
BooleanType isFinite(const T &_value)
double acadoDiv(double nom, double den)
BooleanType acadoIsNaN(double x)