From: Richard Kreckel Date: Fri, 31 Jul 2015 22:52:11 +0000 (+0200) Subject: Fix parser example in tutorial. X-Git-Tag: ginac_1-6-6~17 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=commitdiff_plain;h=9adbc4df1aaf1e19dee67341918693562c69b3a2;p=ginac.git Fix parser example in tutorial. Thanks to Jean-Michaƫl Celerier for pointing this out. --- diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi index 1021a32a..3db3518e 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -6505,7 +6505,7 @@ to map input (sub)strings to arbitrary expressions: table["x"] = x+log(y)+1; parser reader(table); ex e = reader("5*x^3 - x^2"); - // e = 5*(x+log(y)+1)^3 + (x+log(y)+1)^2 + // e = 5*(x+log(y)+1)^3 - (x+log(y)+1)^2 @} @end example @@ -6518,8 +6518,8 @@ with @code{get_syms()} method: parser reader; ex e = reader("2*x+sin(y)"); symtab table = reader.get_syms(); - symbol x = reader["x"]; - symbol y = reader["y"]; + symbol x = ex_to(table["x"]); + symbol y = ex_to(table["y"]); @} @end example