From 29e0d8caa7ba4cda6c1d600887e7056e266f9dde Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 1 Jan 2014 13:43:58 +0100 Subject: [PATCH] Simplify move_importance(): take 3 Use pow() of a negative number instead of 1/x No functional change. --- src/timeman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeman.cpp b/src/timeman.cpp index 013d5f46..5e9304d5 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -44,7 +44,7 @@ namespace { double move_importance(int ply) { - return 1 / pow((1 + exp((ply - xshift) / xscale)), skewfactor); + return pow((1 + exp((ply - xshift) / xscale)), -skewfactor); } -- 2.39.2