diff options
author | OmkarAcharekar <omkaracharekar12@gmail.com> | 2022-11-10 13:56:39 +0530 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-11-19 00:48:16 +0100 |
commit | bcf333309f9a9bde21aac1302cbead2b23822458 (patch) | |
tree | ba371dc8a3a6f6467faca5e71b13e0d0f4e48b87 /scaddins | |
parent | f4b5ecb54dbe216677b3eeb9a03f63da7df8223f (diff) |
tdf#147906 Use std::hypot for Pythagorean addition
Change-Id: I19ecfe80e9a927c14db2680188baa54cb4911d4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142535
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx index 093d939301eb..835593518a98 100644 --- a/scaddins/source/analysis/analysishelper.hxx +++ b/scaddins/source/analysis/analysishelper.hxx @@ -652,7 +652,7 @@ inline double Complex::Imag() const inline double Complex::Abs() const { - return sqrt( r * r + i * i ); + return std::hypot(r, i); } |