summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/tool/interpr3.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx
index 3354488a88e4..e8937f4501e2 100644
--- a/sc/source/core/tool/interpr3.cxx
+++ b/sc/source/core/tool/interpr3.cxx
@@ -205,12 +205,12 @@ double ScInterpreter::integralPhi(double x)
double ScInterpreter::taylor(const double* pPolynom, sal_uInt16 nMax, double x)
{
- double nVal = pPolynom[nMax];
+ KahanSum nVal = pPolynom[nMax];
for (short i = nMax-1; i >= 0; i--)
{
- nVal = pPolynom[i] + (nVal * x);
+ nVal = (nVal * x) + pPolynom[i];
}
- return nVal;
+ return nVal.get();
}
double ScInterpreter::gauss(double x)