44 #ifndef __TypeIIRMLMath__ 45 #define __TypeIIRMLMath__ 69 #define OTG_INFINITY ((double)1.0e100) 85 #define RML_INPUT_VALUE_EPSILON ((double)1.0e-10) 97 #define RML_VALID_SOLUTION_EPSILON ((double)1.0e-10) 115 #define MAXIMAL_NO_OF_POLYNOMIALS 7 130 #define RML_MAX_EXECUTION_TIME ((double)1e10) 142 #define RML_ADDITIONAL_RELATIVE_POSITION_ERROR_IN_CASE_OF_EQUALITY ((double)1e-7) 154 #define RML_ADDITIONAL_ABSOLUTE_POSITION_ERROR_IN_CASE_OF_EQUALITY ((double)1e-7) 164 #define POSITIVE_ZERO ((double)1.0e-50) 179 #define ABSOLUTE_PHASE_SYNC_EPSILON ((double)1.0e-6) 192 #define RELATIVE_PHASE_SYNC_EPSILON ((double)1.0e-3) 201 #define RML_INFINITY ((double)1.0e100) 216 #define RML_POSITION_EXTREMS_TIME_EPSILON ((double)1.0e-4) 228 #define PHASE_SYNC_COLLINEARITY_REL_EPSILON ((double)1.0e-2) 243 #define Sign(A) ( ((double)(A) < 0.0)?(-1):(1) ) 258 #define FSign(A) ( ((double)(A) < 0.0)?(-1.0):(1.0) ) 273 #define pow2(A) ((A)*(A)) 293 return( ( Value <= 0.0 ) ? (
POSITIVE_ZERO ) : ( sqrt( Value ) ) );
304 #define IsInputEpsilonEqual(A,B) ((bool)((fabs((double)A - (double)B) <= RML_INPUT_VALUE_EPSILON)?(true):(false))) 331 ,
const double &Value2
332 ,
const double &Epsilon)
334 return(fabs(Value1 - Value2) <= Epsilon);
double RMLSqrt(const double &Value)
Calculates the real square root of a given value. If the value is negative a value of almost zero wil...
bool IsEpsilonEquality(const double &Value1, const double &Value2, const double &Epsilon)
Checks epsilon equality for two values.
#define POSITIVE_ZERO
To prevent from numerical errors, a value for a "positive" value of zero is required for deterministi...