]> www.ginac.de Git - ginac.git/blobdiff - check/exam_inifcns.cpp
Finalize 1.7.6 release.
[ginac.git] / check / exam_inifcns.cpp
index a0acb2de8af183d1f1094b06c7d9f506e5c37b6b..667d08426aa2288648bf016ce0449159cf03a3ce 100644 (file)
@@ -4,7 +4,7 @@
  *  functions. */
 
 /*
- *  GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2019 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
@@ -232,6 +232,12 @@ static unsigned inifcns_consist_abs()
        if (!abs(pow(p,a+I*b)).eval().is_equal(pow(p,a)))
                ++result;
 
+       if (!abs(sqrt(p)).eval().is_equal(sqrt(p)))
+               ++result;
+
+       if (!abs(-sqrt(p)).eval().is_equal(sqrt(p)))
+               ++result;
+
        // also checks that abs(p)=p
        if (!abs(pow(p,a+I*b)).eval().is_equal(pow(p,a)))
                ++result;
@@ -287,6 +293,7 @@ static unsigned inifcns_consist_exp()
 
 static unsigned inifcns_consist_log()
 {
+       using GiNaC::log;
        unsigned result = 0;
        symbol z("a"), w("b");
        realsymbol a("a"), b("b");
@@ -343,7 +350,7 @@ static unsigned inifcns_consist_various()
        return result;
 }
 
-/* Several tests for derivetives */
+/* Several tests for derivatives */
 static unsigned inifcns_consist_derivatives()
 {
        unsigned result = 0;