[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - sc/source

Tomaž Vajngerl tomaz.vajngerl at collabora.com
Mon Jan 25 08:11:24 PST 2016


 sc/source/ui/StatisticsDialogs/RegressionDialog.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f3dbf9cbba6e1d5917de9793a95eced4182777b8
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.com>
Date:   Sun Jan 24 15:08:05 2016 +0100

    tdf#74667 interchange slope and intercept for power regression
    
    Change-Id: I9da7edeabcc9f963ac19d26114fa101d4b5ce98f
    (cherry picked from commit 4d67b0baaa4f0fb009b9ee6fbcf4618abf009f53)
    Reviewed-on: https://gerrit.libreoffice.org/21743
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
index ad092ee..84939a8 100644
--- a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
@@ -53,21 +53,21 @@ namespace
     {
         "=SLOPE(%VARIABLE2_RANGE% ; %VARIABLE1_RANGE%)",
         "=SLOPE(%VARIABLE2_RANGE% ; LN(%VARIABLE1_RANGE%))",
-        "=EXP(INTERCEPT(LN(%VARIABLE2_RANGE%) ; LN(%VARIABLE1_RANGE%)))"
+        "=SLOPE(LN(%VARIABLE2_RANGE%) ; LN(%VARIABLE1_RANGE%))"
     };
 
     OUString constTemplatesINTERCEPT[] =
     {
         "=INTERCEPT(%VARIABLE2_RANGE% ; %VARIABLE1_RANGE%)",
         "=INTERCEPT(%VARIABLE2_RANGE% ; LN(%VARIABLE1_RANGE%))",
-        "=SLOPE(LN(%VARIABLE2_RANGE%) ; LN(%VARIABLE1_RANGE%))"
+        "=EXP(INTERCEPT(LN(%VARIABLE2_RANGE%) ; LN(%VARIABLE1_RANGE%)))"
     };
 
     OUString constRegressionFormula[] =
     {
         "=%A% * %ADDRESS% + %B%",
         "=%A% * LN(%ADDRESS%) + %B%",
-        "=%A% * %ADDRESS% ^ %B%"
+        "=%B% * %ADDRESS% ^ %A%"
     };
 
 } // end anonymous namespace


More information about the Libreoffice-commits mailing list