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&);