Hi Abs(-1, evaluate=False) will stay without evaluating itself.
Sudhanshu Mishra On Wed, Feb 24, 2016 at 10:20 PM, Victor Kam <[email protected]> wrote: > I have an expression, something as simple as |-1|, i.e. Abs(-1). I don't > want it to evaluate to its value, i.e. 1, for printing reasons. I tried: > > parse_expr("Abs(-1)", evaluate=False) > > But it gives me the evaluated expression anyway. In fact, I can't figure > out how to get the expression tree to just keep this Abs function with its > argument. > > So if I want it to display |-1| but not its value, how would I go about > doing it? Thanks. > > -- > 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 https://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/b7f0145e-3d2c-4281-b036-468f7fdeb6eb%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/b7f0145e-3d2c-4281-b036-468f7fdeb6eb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAFW_KCQQfDOODMj%3Dad6rvfkxMm4_Pn%3DLDswdPWqdL-_rztPRzw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
