diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx index 85f2307cdf2b..0f2f5b13ef23 100644 --- a/sc/source/core/tool/interpr2.cxx +++ b/sc/source/core/tool/interpr2.cxx @@ -27,7 +27,6 @@ #include #include #include -#include #include "attrib.hxx" #include "sc.hrc" @@ -1855,7 +1854,7 @@ void ScInterpreter::ScPDuration() double nFuture = GetDouble(); double nPresent = GetDouble(); double nInterest = GetDouble(); - PushDouble(log(nFuture / nPresent) / boost::math::log1p(nInterest)); + PushDouble(log(nFuture / nPresent) / rtl::math::log1p(nInterest)); } } @@ -1972,9 +1971,9 @@ void ScInterpreter::ScNper() PushDouble(-(nBw + nZw)/nRmz); else if (bPayInAdvance) PushDouble(log(-(nInterest*nZw-nRmz*(1.0+nInterest))/(nInterest*nBw+nRmz*(1.0+nInterest))) - /boost::math::log1p(nInterest)); + / rtl::math::log1p(nInterest)); else - PushDouble(log(-(nInterest*nZw-nRmz)/(nInterest*nBw+nRmz))/boost::math::log1p(nInterest)); + PushDouble(log(-(nInterest*nZw-nRmz)/(nInterest*nBw+nRmz)) / rtl::math::log1p(nInterest)); } bool ScInterpreter::RateIteration( double fNper, double fPayment, double fPv, diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx index 033763f5c6a7..a6ef36661e0d 100644 --- a/sc/source/core/tool/interpr3.cxx +++ b/sc/source/core/tool/interpr3.cxx @@ -34,7 +34,6 @@ #include #include #include -#include #include using ::std::vector; @@ -588,7 +587,7 @@ double ScInterpreter::GetGamma(double fZ) if (fZ >= -0.5) // shift to x>=1, might overflow { - double fLogTest = lcl_GetLogGammaHelper(fZ+2) - boost::math::log1p(fZ) - log( fabs(fZ)); + double fLogTest = lcl_GetLogGammaHelper(fZ+2) - rtl::math::log1p(fZ) - log( fabs(fZ)); if (fLogTest >= fLogDblMax) { SetError( FormulaError::IllegalFPOperation); @@ -621,7 +620,7 @@ double ScInterpreter::GetLogGamma(double fZ) return log(lcl_GetGammaHelper(fZ)); if (fZ >= 0.5) return log( lcl_GetGammaHelper(fZ+1) / fZ); - return lcl_GetLogGammaHelper(fZ+2) - boost::math::log1p(fZ) - log(fZ); + return lcl_GetLogGammaHelper(fZ+2) - rtl::math::log1p(fZ) - log(fZ); } double ScInterpreter::GetFDist(double x, double fF1, double fF2)