From f2c6271b711c3ad9e757820a8ede29952b5e070f Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 17 May 2021 14:42:02 +0200 Subject: [PATCH] Improved the parameters of the root finding algorithm --- CoreFlows/Models/src/utilitaire_algebre.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CoreFlows/Models/src/utilitaire_algebre.cxx b/CoreFlows/Models/src/utilitaire_algebre.cxx index 6de9f4c..ddf6e8d 100755 --- a/CoreFlows/Models/src/utilitaire_algebre.cxx +++ b/CoreFlows/Models/src/utilitaire_algebre.cxx @@ -1,9 +1,11 @@ #include "utilitaire_algebre.h" #include +#include + 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) { } -- 2.39.2