]>
www.ginac.de Git - ginac.git/commit
Parser: handle abbreviations as advertized in the manual.
The following example from the tutorial
GiNaC::symbol x, y;
GiNaC::symtab table;
table["x"] = x+log(y)+1;
GiNaC::parser reader(table);
GiNaC::ex e = reader("5*x3 - x2");
fails with the following exception:
terminate called after throwing an instance of 'std::invalid_argument'
what(): find_or_insert_symbol: name "x" does not correspond to a symbol
Remove silly checks from find_or_insert_symbol, and fix its return value
(should be ex, not symbol).