Thanks for this two answers.

Christophe


2014-03-04 20:25 GMT+01:00 Mateusz Paprocki <[email protected]>:

> Hi,
>
> On 3 March 2014 16:30, Christophe Bal <[email protected]> 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 [email protected].
> > To post to this group, send email to [email protected].
> > 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.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAGBZUCa3eAaztQ2jQZSd5ETRA9t370qzo7GrbAR1kPU1%3D-USdg%40mail.gmail.com
> .
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAAb4jGkuUh%2BCfBra3VJZJawAAtwTjzjwKKQY%3DonRHgheaq1aOA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to