]> www.ginac.de Git - ginac.git/commitdiff
- fixed exp/log checks
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 22 Nov 1999 17:22:29 +0000 (17:22 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 22 Nov 1999 17:22:29 +0000 (17:22 +0000)
check/differentiation.cpp

index 3d49062b82b79b5784d274fe8c288f953aff2581..611342d0cdfc9a9ce9ef5170dde5314c5cd154fa 100644 (file)
@@ -164,6 +164,7 @@ static unsigned differentiation3(void)
     ex e1, e2, e, d;
 
     // construct expression e to be diff'ed:
     ex e1, e2, e, d;
 
     // construct expression e to be diff'ed:
+    e1 = y*pow(x, 2) + a*x + b;
     e2 = exp(e1);
     e = b*pow(e2, 2) + y*e2 + a;
     
     e2 = exp(e1);
     e = b*pow(e2, 2) + y*e2 + a;
     
@@ -191,6 +192,7 @@ static unsigned differentiation4(void)
     ex e1, e2, e, d;
     
     // construct expression e to be diff'ed:
     ex e1, e2, e, d;
     
     // construct expression e to be diff'ed:
+    e1 = y*pow(x, 2) + a*x + b;
     e2 = log(e1);
     e = b*pow(e2, 2) + y*e2 + a;
     
     e2 = log(e1);
     e = b*pow(e2, 2) + y*e2 + a;