Skip to content

Commit

Permalink
Fix for issue #16. What other bugs are lurking in this code...
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-matera committed Dec 31, 2017
1 parent d3e9fb5 commit 84b135f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/complex
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,15 @@ 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<class T> _UCXXEXPORT complex<T> sin (const complex<T>& v){
return complex<T>(sin(v.real()) * cosh(v.imag()), cosh(v.real()) * sin(v.imag()));
}

template<class T> _UCXXEXPORT complex<T> sinh (const complex<T>& v){
return complext<T>(sinh(v.real()) * cos(v.imag()), cosh(v.real()) * sin(v.imag()) );
return complex<T>(sinh(v.real()) * cos(v.imag()), cosh(v.real()) * sin(v.imag()) );
}

template<class T> _UCXXEXPORT complex<T> sqrt (const complex<T>&);
Expand Down

0 comments on commit 84b135f

Please sign in to comment.