I guess simplify() just doesn't know about abs. You can open an issue. Aaron Meurer
On Tue, May 19, 2015 at 4:00 PM, Oscar Benjamin <[email protected]> wrote: > Am I misunderstanding something here (using master): > > $ isympy > Couldn't locate IPython. Having IPython installed is greatly recommended. > ... >>>> z = (4+3*I)/(3-4*I) >>>> z > 4 + 3⋅ⅈ > ─────── > 3 - 4⋅ⅈ >>>> abs(z) > │ 1 │ > 5⋅│───────│ > │3 - 4⋅ⅈ│ >>>> simplify(abs(z)) > │ 1 │ > 5⋅│───────│ > │3 - 4⋅ⅈ│ >>>> abs(z).evalf() > 1.00000000000000 >>>> abs(z) ** 2 > 2 > │ 1 │ > 25⋅│───────│ > │3 - 4⋅ⅈ│ >>>> z * z.conjugate() > (4 - 3⋅ⅈ)⋅(4 + 3⋅ⅈ) > ─────────────────── > (3 - 4⋅ⅈ)⋅(3 + 4⋅ⅈ) >>>> simplify(z * z.conjugate()) > 1 > > Why doesn't abs(z) simplify (or should I open an issue)? > > > -- > Oscar > > -- > 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/CAHVvXxS6DNZR8dPJ5AZ96V7MKtZQrvug_Pjs2%3DLejVOP6e73aw%40mail.gmail.com. > 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 http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2B2sRL9wzwO2c9nvKAAVG4F3Wd75LGZ_XXkusV8JjFWVg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
