You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by re...@apache.org on 2013/03/18 13:21:29 UTC

svn commit: r1457731 - /openoffice/trunk/main/scaddins/source/analysis/analysishelper.cxx

Author: regina
Date: Mon Mar 18 12:21:29 2013
New Revision: 1457731

URL: http://svn.apache.org/r1457731
Log:
i121722 corrected calculation for IMCSCH and IMSECH
Author: Maarten Kesselaers
Review by: Regina Henschel

Modified:
    openoffice/trunk/main/scaddins/source/analysis/analysishelper.cxx

Modified: openoffice/trunk/main/scaddins/source/analysis/analysishelper.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/scaddins/source/analysis/analysishelper.cxx?rev=1457731&r1=1457730&r2=1457731&view=diff
==============================================================================
--- openoffice/trunk/main/scaddins/source/analysis/analysishelper.cxx (original)
+++ openoffice/trunk/main/scaddins/source/analysis/analysishelper.cxx Mon Mar 18 12:21:29 2013
@@ -2223,8 +2223,8 @@ void Complex::Sech(void) THROWDEF_RTE_IA
             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
@@ -2246,8 +2246,8 @@ void Complex::Csch(void) THROWDEF_RTE_IA
             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