Hi,
On 3 March 2014 16:30, Christophe Bal <
proj...@gmail.com> wrote:
> Hello.
>
> Is there an equivalent of FullForm that produces simple treeview of a
> formula ? Here is basic example seen in a video.
>
> FullForm[x**2+x**3] = Plus[Power[x, 2], Power[y, 3]]
>
In [1]: srepr(x**2 + x**3)
Out[1]: "Add(Pow(Symbol('x'), Integer(3)), Pow(Symbol('x'), Integer(2)))"
Note that `repr()` won't work due to bugs in Python (it's wired to str()):
In [2]: repr(x**2 + x**3)
Out[2]: 'x**3 + x**2'
Mateusz
> 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
sympy+un...@googlegroups.com.
> To post to this group, send email to
sy...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sympy.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/sympy/CAAb4jGnmdpAEwhGRYEfdQUv_J1z2Oc60A1QWZbKiLSvHZVxd3A%40mail.gmail.com.
> For more options, visit
https://groups.google.com/groups/opt_out.