]> www.ginac.de Git - ginac.git/blobdiff - check/exam_paranoia.cpp
log(-<realnumber>) now returns a real number
[ginac.git] / check / exam_paranoia.cpp
index 21d40c9aba562e42f11c1df0de304cebff0d2f45..b5ae9baf416ccc573411c27fb5487a3db98eea6e 100644 (file)
@@ -6,7 +6,7 @@
  *  these oopses for good, so we run those stupid tests... */
 
 /*
- *  GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -426,6 +426,14 @@ static unsigned exam_paranoia16()
                ++result;
        }
 
+       e1 = a*(a+b);
+       e2 = pow(pow(e1, -1), -1);
+
+       if (e2.has(a*b)) {
+               clog << "double reciprocal expanded where it should not\n";
+               ++result;
+       }
+
        return result;
 }