Mercurial > octave
diff src/xpow.cc @ 4682:994f449a1eba
[project @ 2003-12-19 15:37:14 by jwe]
author | jwe |
---|---|
date | Fri, 19 Dec 2003 15:37:14 +0000 |
parents | 334a27c8f453 |
children | 91a84c9bdadb |
line wrap: on
line diff
--- a/src/xpow.cc Thu Dec 18 15:35:09 2003 +0000 +++ b/src/xpow.cc Fri Dec 19 15:37:14 2003 +0000 @@ -70,8 +70,13 @@ { if (a < 0.0 && static_cast<int> (b) != b) { + // XXX FIXME XXX -- avoid apparent GNU libm bug by converting + // A and B to complex instead of just A. + Complex atmp (a); - return pow (atmp, b); + Complex btmp (b); + + return pow (atmp, btmp); } else return pow (a, b);