Cool thanks.

On Wed, Sep 11, 2013 at 9:30 PM, Aaron Meurer <[email protected]> wrote:

> Use Eq(), like Eq(a, b**2).
>
> Aaron Meurer
>
> On Wed, Sep 11, 2013 at 7:24 AM, Boris Kheyfets <[email protected]>
> wrote:
> > Hello SymPy users,
> >
> > Suppose I have a = b**2, and I want to pprint:
> >
> >      2
> > a = b
> >
> > How can I do it? The closest I can get is:
> >
> > #!/usr/bin/python
> >
> > from sympy import *
> >
> > var("a b")
> >
> > a = b**2
> >
> > pprint({"a": a)
> >
> > But it
> >
> > prints : instead of = and also
> > prints ugly {} around equality (or assignment).
> >
> > Ideally I want something like:
> >
> > pprint(a.__name__ + " = " + a)
> >
> > --
> > 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 a topic in the
> Google Groups "sympy" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sympy/FRqInVjMO1s/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

Reply via email to