]> www.ginac.de Git - ginac.git/blobdiff - check/exam_inifcns.cpp
Update documentation of prerequisites.
[ginac.git] / check / exam_inifcns.cpp
index a0acb2de8af183d1f1094b06c7d9f506e5c37b6b..cad9c8357827977e51cc04765add880a7269046f 100644 (file)
@@ -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;