diff options
author | BaiXiaochun <bai.xiaochun.mofan@protonmail.com> | 2021-06-29 21:06:12 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-07-02 07:53:02 +0200 |
commit | 557d7a8bdad148501c491a060da74a6214284ca4 (patch) | |
tree | 5413a35b51169c6f3b62ef82c3b4b15465aacd6d /scaddins/source | |
parent | 09218e0d4a0727bbf385f80c538da9e76e89dbc4 (diff) |
Purge rtl::math:: ( erf / erfc / expm1 )
Change-Id: Id0e0dce5f9a3bf0bb9ddc73e3aeaa8faf683ad2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118134
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'scaddins/source')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 6 | ||||
-rw-r--r-- | scaddins/source/pricing/black_scholes.cxx | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index fd4de83c3ce2..405fdae9e5e6 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -732,16 +732,14 @@ OUString ConvertFromDec( double fNum, double fMin, double fMax, sal_uInt16 nBase return aRet; } -// implementation moved to module sal, see #i97091# double Erf( double x ) { - return ::rtl::math::erf(x); + return std::erf(x); } -// implementation moved to module sal, see #i97091# double Erfc( double x ) { - return ::rtl::math::erfc(x); + return std::erfc(x); } static bool IsNum( sal_Unicode c ) diff --git a/scaddins/source/pricing/black_scholes.cxx b/scaddins/source/pricing/black_scholes.cxx index 57344d85cbec..88bdfc999b35 100644 --- a/scaddins/source/pricing/black_scholes.cxx +++ b/scaddins/source/pricing/black_scholes.cxx @@ -93,8 +93,7 @@ static double dnorm(double x) { } // cumulative normal distribution (see also ScInterpreter::integralPhi) static double pnorm(double x) { - //return 0.5*(erf(sqrt(0.5)*x)+1.0); // windows may not have erf - return 0.5 * ::rtl::math::erfc(-x * 0.7071067811865475); + return 0.5 * std::erfc(-x * 0.7071067811865475); } // binary option cash (domestic) |