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/pricing/black_scholes.cxx | |
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/pricing/black_scholes.cxx')
-rw-r--r-- | scaddins/source/pricing/black_scholes.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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) |