X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=doc%2Ftutorial%2Fginac.texi;h=3db3518ee9a5cdf781b81d44e89e0624d9513eed;hp=1021a32a22760cced31fd114e686d27e8a1c01cd;hb=9adbc4df1aaf1e19dee67341918693562c69b3a2;hpb=cd0f12f5ce6023812f76d0f6eb40ee83078c2775 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