Thanks for all. I was also thinking indeed in "hacking" the printer of SymPy.
Thanks. Christophe Le 9 nov. 2013 13:54, "Matthew Rocklin" <[email protected]> a écrit : > take a look at sympy.printing.dot > On Nov 9, 2013 5:40 AM, "F. B." <[email protected]> wrote: > >> Try srepr, you get a string: >> >> srepr(*3*x**2+exp(x-cos(x)))* >> >> otherwise .args method, you get the first children of the node you apply >> it on. >> >> *(**3*x**2+exp(x-cos(x))).args* >> >> After that, you can recursively apply .args on the children you get. >> >> Python coding standard suggests to use snake case for instances of >> variables, while camel case is preferred for class name. So it is suggested >> to write *my_obj* instead of *myObj*. >> >> On Saturday, November 9, 2013 11:01:41 AM UTC+1, Christophe Bal wrote: >>> >>> Hello. >>> >>> Is there a tool so as to know informations about a sympy object ? >>> >>> Let suppose for example that *myObj = 3*x**2+exp(x-cos(x))* . Can I >>> have easily a kind of treeview of *myObj* so as to know for example >>> that the functions used are *exp* and *cos* , that only one variable >>> *x* has been used ?... >>> >>> Best regards. >>> >>> Christophe BAL >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "sympy" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/sympy. >> For more options, visit https://groups.google.com/groups/opt_out. >> > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
