]> www.ginac.de Git - ginac.git/blobdiff - doc/tutorial/ginac.texi
Be more careful about final top-level substitution.
[ginac.git] / doc / tutorial / ginac.texi
index 571144a14df830640fbf1d7a019292fb54137c9a..e8f0395d0bdc18b7af09d7399a2a9f8ff22501b6 100644 (file)
@@ -4263,7 +4263,7 @@ In the first form, @code{subs()} accepts a relational of the form
 @{
     symbol x("x"), y("y");
 
-    ex e1 = 2*x^2-4*x+3;
+    ex e1 = 2*x*x-4*x+3;
     cout << "e1(7) = " << e1.subs(x == 7) << endl;
      // -> 73