]> 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 b3befd3fb7d170510ca7f20f501e9f3be01e546a..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
 
@@ -4637,7 +4637,7 @@ often as is possible without getting negative exponents. For example
 @code{(x^(-3)*y^(-2)*z).subs(1/(x*y)==c, subs_options::algebraic)} will
 return @code{x^(-1)*c^2*z}. 
 
-@strong{Note:} this only works for multiplications
+@strong{Please notice:} this only works for multiplications
 and not for locating @code{x+y} within @code{x+y+z}.