Hi, To celebrate Pi Day (three days from now) and the 1.0 release of SymPy, I propose collecting ways to produce the symbolic result "pi" with SymPy.
I have created a git repository (https://github.com/fredrik-johansson/314) to collect such pi examples, using my old list of "100 mpmath one-liners for pi" as the starting point. Feel free to contribute! A useful project would be to go through all of the mpmath examples and improve SymPy's symbolic capabilities to the point where it can simplify all those formulas to pi (perhaps after the user invokes the right simplification and rewriting commands). I have a added a few SymPy examples; there are many more that could be added straight away. There are also many examples that currently won't work (of course, nsimplify could be used, but that's cheating). The first disappointment is that SymPy doesn't seem to be able to simplify Machin's formula 16*acot(5)-4*acot(239). Another simple case that should be more robust is pi_005: 2*I*simplify(log((1-I)/(1+I))) produces pi, but simplify(2*I*log((1-I)/(1+I))) doesn't. Fredrik -- 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/CAJdUXT%2B36N%2BQq0cH--RcNUTaRmxa%2BwkM3mCeAr_3BiPaOTyvHw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
