From 84b135fef4cc18a5457d6c90c82bfd555fe5ecd9 Mon Sep 17 00:00:00 2001 From: Mike Matera Date: Sat, 30 Dec 2017 17:17:40 -0800 Subject: [PATCH] Fix for issue #16. What other bugs are lurking in this code... --- src/complex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/complex b/src/complex index 2c3c82b9..61e489ed 100644 --- a/src/complex +++ b/src/complex @@ -299,7 +299,7 @@ namespace std { if(v == T()){ return T(); } - return polar(pow(v,p.real()), y.imag() * log(x) ); + return polar(pow(v,p.real()), p.imag() * log(x) ); } template _UCXXEXPORT complex sin (const complex& v){ @@ -307,7 +307,7 @@ namespace std { } template _UCXXEXPORT complex sinh (const complex& v){ - return complext(sinh(v.real()) * cos(v.imag()), cosh(v.real()) * sin(v.imag()) ); + return complex(sinh(v.real()) * cos(v.imag()), cosh(v.real()) * sin(v.imag()) ); } template _UCXXEXPORT complex sqrt (const complex&);