]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Improved the parameters of the root finding algorithm
authormichael <michael@localhost.localdomain>
Mon, 17 May 2021 12:42:02 +0000 (14:42 +0200)
committermichael <michael@localhost.localdomain>
Mon, 17 May 2021 12:42:02 +0000 (14:42 +0200)
CoreFlows/Models/src/utilitaire_algebre.cxx

index 6de9f4c0b8b70b5f4bdb83ea68f168ecb714ba08..ddf6e8d9bf809869b37bcd60a8f5c441b7b056a3 100755 (executable)
@@ -1,9 +1,11 @@
 #include "utilitaire_algebre.h"
 #include <iostream>
+#include <cfloat>
+
 using namespace std;
 
-roots_polynoms::roots_polynoms(): smalno(1.2e-38), infin(3.4e38), 
-                                 eta(2.22e-16), base(2
+roots_polynoms::roots_polynoms(): smalno(DBL_MIN), infin(DBL_MAX), //Parameters associated to the type double. 
+                                 eta(DBL_EPSILON), base(FLT_RADIX
 {
 }