unfortunately, I was mistaken. It turns out that the extra parens are quite problematic.
The problem is that the parser for symbolic expressions provided by sage only allows function calls of the form f(a,b,c), with very few exceptions. In particular, expressions of the form f(a, (b, c)) are not parsed. What I did originally (in the context of expressions only!), is to replace ".." with ",". Thus "equation(k, (a+b)*c..n)" was replaced with "equation(k, (a+b)*c, n)", which the parser could handle. Thus, unless the extra parentheses can be dropped, I'm afraid I have to use the InputForm itself (in parsed form). The downside is that the strings which have to be processed become much longer, usually. But I admit that I never seriously tried. Martin -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To post to this group, send email to fricas-devel@googlegroups.com. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.