[Libreoffice-commits] .: Branch 'libreoffice-3-6' - scaddins/source

Regina Henschel rb.henschel at t-online.de
Sat Feb 2 05:22:39 PST 2013


 scaddins/source/analysis/analysishelper.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 71becb50e4f24b958ac081d3f513a65f802ce00e
Author: Regina Henschel <rb.henschel at t-online.de>
Date:   Wed Jan 30 17:34:27 2013 +0100

    resolved fdo#60078 correctly calculate IMCSCH and IMSECH
    
    For the transformation used see
    http://de.wikipedia.org/wiki/Sekans_Hyperbolicus_und_Kosekans_Hyperbolicus#Komplexes_Argument
    (German only)
    
    Change-Id: If502b7333308069d7fcbe09e954b26ce8b7268b6
    (cherry picked from commit b884c2e0185e24fc498827b3a53becea9e646b85)
    Reviewed-on: https://gerrit.libreoffice.org/1927
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 2347f53..1e720db 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -2085,8 +2085,8 @@ void Complex::Sech(void) THROWDEF_RTE_IAE
             THROW_IAE;
         double fScale =1.0 / ( cosh( 2.0 * r ) + cos( 2.0 * i ));
         double r_;
-        r_ = 2.0 * cosh( 2.0 * r ) * cos( i ) * fScale;
-        i = - (2.0 * sinh( 2.0 * r ) * sin( i ) * fScale );
+        r_ = 2.0 * cosh( r ) * cos( i ) * fScale;
+        i = - (2.0 * sinh( r ) * sin( i ) * fScale );
         r = r_ ;
     }
     else
@@ -2106,8 +2106,8 @@ void Complex::Csch(void) THROWDEF_RTE_IAE
             THROW_IAE;
         double fScale =1.0 / ( cosh( 2.0 * r ) - cos( 2.0 * i ));
         double r_;
-        r_ = 2.0 * sinh( 2.0 * r ) * cos( i ) * fScale;
-        i = - ( 2.0 * cosh( 2.0 * r ) * sin( i ) * fScale );
+        r_ = 2.0 * sinh( r ) * cos( i ) * fScale;
+        i = - ( 2.0 * cosh( r ) * sin( i ) * fScale );
         r = r_ ;
     }
     else


More information about the Libreoffice-commits mailing list