标签:fabs define double seq ble const sse eps class
const double eps = 1e-8; #define Equ(a,b) ( ( fabs( (a)-(b))) < (eps)) #define More(a,b) ( (a) - (b)) > (eps)) #define Less(a,b) ( (a) - (b)) < (-eps)) #define MoreEqu(a,b) ( (a) - (b)) > (-eps)) #define LessEqu(a,b) ( (a) - (b)) < (eps)) //-eps_0_+eps /* |________-eps_(a-b)_+eps__________| Equ |________-eps___0___+eps(a-b)______| More |___(a-b)-eps___0___+eps__________| Less |________-eps(a-b)_______________| MoreEqu |______________(a-b)+eps__________|LessEqu */
待续2020-09-01
标签:fabs define double seq ble const sse eps class
原文地址:https://www.cnblogs.com/auch/p/13599160.html