Re: Issue 3821 in sympy: trigsimp does not simplify `cosh(z) - sinh(z)`

2013-05-16 Thread sympy
Comment #2 on issue 3821 by smi...@gmail.com: trigsimp does not simplify `cosh(z) - sinh(z)` http://code.google.com/p/sympy/issues/detail?id=3821 trigsimp tries to work with trig functions, not exponentials. foo.rewrite(exp) will give the desired result for all of these: for foo in [cos

Re: Issue 3826 in sympy: trigsimp can't reverse tan double angle formula

2013-05-16 Thread sympy
Comment #2 on issue 3826 by smi...@gmail.com: trigsimp can't reverse tan double angle formula http://code.google.com/p/sympy/issues/detail?id=3826 If something fails in trigsimp try the more robust fu. fu(tan(2*x).expand(trig=1)) tan(2*x) -- You received this message because this project

Re: Issue 1198 in sympy: pickle does not work for Function

2013-05-16 Thread sympy
Comment #21 on issue 1198 by asmeu...@gmail.com: pickle does not work for Function http://code.google.com/p/sympy/issues/detail?id=1198 Of course, the easiest way is if we just release. Anyone want to help? -- You received this message because this project is configured to send all issue n

Issue 3830 in sympy: SymPy Live settings should start closed in the Sphinx extension

2013-05-16 Thread sympy
Status: Valid Owner: Labels: Type-Defect Priority-Medium Live Documentation New issue 3830 by asmeu...@gmail.com: SymPy Live settings should start closed in the Sphinx extension http://code.google.com/p/sympy/issues/detail?id=3830 When the SymPy Live console in the Sphinx extension opens

Re: Issue 1198 in sympy: pickle does not work for Function

2013-05-16 Thread sympy
Comment #20 on issue 1198 by asmeu...@gmail.com: pickle does not work for Function http://code.google.com/p/sympy/issues/detail?id=1198 My question is, what's the best way (short of releasing) to backport this to SymPy Live? -- You received this message because this project is configured

Re: Issue 1198 in sympy: pickle does not work for Function

2013-05-16 Thread sympy
Comment #19 on issue 1198 by li.david...@gmail.com: pickle does not work for Function http://code.google.com/p/sympy/issues/detail?id=1198 I think this fix is fine, but hopefully we can make pickling work better overall. -- You received this message because this project is configured to s

Re: Issue 3769 in sympy: minpoly hangs on this expresion; should subtract constant?

2013-05-16 Thread sympy
Updates: Status: Fixed Comment #8 on issue 3769 by asmeu...@gmail.com: minpoly hangs on this expresion; should subtract constant? http://code.google.com/p/sympy/issues/detail?id=3769 (No comment was entered for this change.) -- You received this message because this project is config

Re: Issue 3812 in sympy: simplify() is wrong

2013-05-16 Thread sympy
Updates: Labels: Simplify Comment #1 on issue 3812 by asmeu...@gmail.com: simplify() is wrong http://code.google.com/p/sympy/issues/detail?id=3812 Possibly related to issue 3825. -- You received this message because this project is configured to send all issue notifications to this ad

Issue 3829 in sympy: Should Integral.subs (and Subs(Integral)) on an indefinite integral return an integral with two limits

2013-05-16 Thread sympy
Status: NeedsDecision Owner: Labels: Type-Defect Priority-Medium Integration New issue 3829 by asmeu...@gmail.com: Should Integral.subs (and Subs(Integral)) on an indefinite integral return an integral with two limits http://code.google.com/p/sympy/issues/detail?id=3829 This is related t

Re: Issue 3827 in sympy: integrate(sqrt(x**2/((y - x)*(y + x))), x) showing some infinities

2013-05-16 Thread sympy
Updates: Status: Fixed Comment #4 on issue 3827 by asmeu...@gmail.com: integrate(sqrt(x**2/((y - x)*(y + x))), x) showing some infinities http://code.google.com/p/sympy/issues/detail?id=3827 (No comment was entered for this change.) -- You received this message because this project i

Re: Issue 3828 in sympy: Report versions of all external modules in test

2013-05-16 Thread sympy
Comment #2 on issue 3828 by asmeu...@gmail.com: Report versions of all external modules in test http://code.google.com/p/sympy/issues/detail?id=3828 Another plus to this idea is that import_module already has flags to deal with different ways of module reporting their own version. -- You

Re: Issue 3828 in sympy: Report versions of all external modules in test

2013-05-16 Thread sympy
Updates: Status: Valid Comment #1 on issue 3828 by asmeu...@gmail.com: Report versions of all external modules in test http://code.google.com/p/sympy/issues/detail?id=3828 Is there some way to use import_module or doctest_depends_on to automatically gather all external modules that

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #27 on issue 3809 by asmeu...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 Any one care to compare timings for http://en.literateprograms.org/index.php?title=Special:DownloadCode/Miller-Rabin_primality_test_(Python)&oldid=17104) to SymPy with

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #26 on issue 3809 by asmeu...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 By the way, the b**2 % 2 thing actually doesn't matter. b is already reduced mod n from the previous line, so using pow shouldn't make any difference, especially since

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #25 on issue 3809 by asmeu...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 You misunderstood my question. I'm not talking about the witnesses. I'm talking about the inputs to isprime. You keep talking about testing it against some large Mersen

Re: Issue 1198 in sympy: pickle does not work for Function

2013-05-16 Thread sympy
Comment #18 on issue 1198 by asmeu...@gmail.com: pickle does not work for Function http://code.google.com/p/sympy/issues/detail?id=1198 I went ahead and submitted the fix from comment 13 at https://github.com/sympy/sympy/pull/2114. It will fix SymPy live the next time we release. -- Yo

Re: Issue 1688 in sympy: Functions should be objects

2013-05-16 Thread sympy
Issue 1688: Functions should be objects http://code.google.com/p/sympy/issues/detail?id=1688 This issue is now blocking issue sympy:1198. See http://code.google.com/p/sympy/issues/detail?id=1198 -- You received this message because you are listed in the owner or CC fields of this issue, or becau

Re: Issue 1198 in sympy: pickle does not work for Function

2013-05-16 Thread sympy
Updates: Blockedon: sympy:1688 Comment #17 on issue 1198 by asmeu...@gmail.com: pickle does not work for Function http://code.google.com/p/sympy/issues/detail?id=1198 (No comment was entered for this change.) -- You received this message because this project is configured to send all

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #24 on issue 3809 by prasoon9...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 And just to be clear, we don't need to test against composites *also*. Primes themselves are good enough. We are using any numbers between 2 and n-2 as witnesses to

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #23 on issue 3809 by prasoon9...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 Well, AFAIK, for the cases in the _mr_safe function (that is for if n < 1), we can just test for certain primes and know _for sure_ whether n is pri

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #22 on issue 3809 by asmeu...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 Do primes represent the worst case scenario in this algorithm. Should we also test against composites? -- You received this message because this project is configured t

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #21 on issue 3809 by prasoon9...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 Btw, I ran a python script that uses the MR algorithm (found here : http://en.literateprograms.org/index.php?title=Special:DownloadCode/Miller-Rabin_primality_test_(Py

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #20 on issue 3809 by prasoon9...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 Well, I suppose we can just test out with large primes (Mersenne primes maybe) for that. As I wrote before, on my workstation, it took the same time with either way.

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #19 on issue 3809 by asmeu...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 Oh of course. It will indeed be much faster with pow because it computes the mod before squaring. But is that the source of the slowdown here? -- You received this mes

Re: Issue 3715 in sympy: ufuncify with logarithms

2013-05-16 Thread sympy
Updates: Status: Fixed Comment #18 on issue 3715 by asmeu...@gmail.com: ufuncify with logarithms http://code.google.com/p/sympy/issues/detail?id=3715 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notificatio

Re: Issue 3826 in sympy: trigsimp can't reverse tan double angle formula

2013-05-16 Thread sympy
Comment #1 on issue 3826 by smi...@gmail.com: trigsimp can't reverse tan double angle formula http://code.google.com/p/sympy/issues/detail?id=3826 a workaround is from sympy.simplify.fu import * eq 2*tan(x)/(-tan(x)**2 + 1) simplify(TR2(eq)) tan(2*x) -- You received this message becaus

Re: Issue 3809 in sympy: isprime can be faster

2013-05-16 Thread sympy
Comment #18 on issue 3809 by smi...@gmail.com: isprime can be faster http://code.google.com/p/sympy/issues/detail?id=3809 See the tests above...a 262k digit base being squared either takes about .002 seconds with pow or 10,000x longer with ** -- You received this message because this project

Issue 3828 in sympy: Report versions of all external modules in test

2013-05-16 Thread sympy
Status: New Owner: Labels: Type-Enhancement Priority-Medium Testing New issue 3828 by hacm...@gmail.com: Report versions of all external modules in test http://code.google.com/p/sympy/issues/detail?id=3828 Currently, SymPy reports the version of Python and gmpy when running tests. It s

Re: Issue 3647 in sympy: Require explicit assumptions when integrating with manualintegrate.

2013-05-16 Thread sympy
Comment #5 on issue 3647 by julien.r...@gmail.com: Require explicit assumptions when integrating with manualintegrate. http://code.google.com/p/sympy/issues/detail?id=3647 from sympy import integrate, sqrt from sympy.abc import x, y integrate(1/((y - x)*(y + x)), x) -(log(x - y)/2 - log(x +

Re: Issue 3827 in sympy: integrate(sqrt(x**2/((y - x)*(y + x))), x) showing some infinities

2013-05-16 Thread sympy
Updates: Status: Started Owner: julien.r...@gmail.com Comment #3 on issue 3827 by julien.r...@gmail.com: integrate(sqrt(x**2/((y - x)*(y + x))), x) showing some infinities http://code.google.com/p/sympy/issues/detail?id=3827 https://github.com/sympy/sympy/pull/2112 -- You rec

Re: Issue 3827 in sympy: integrate(sqrt(x**2/((y - x)*(y + x))), x) showing some infinities

2013-05-16 Thread sympy
Comment #2 on issue 3827 by julien.r...@gmail.com: integrate(sqrt(x**2/((y - x)*(y + x))), x) showing some infinities http://code.google.com/p/sympy/issues/detail?id=3827 I think the bug is in heurisch_wrapper(). For the time being you can use integrate(sqrt(x**2/((y - x)*(y + x))), x, cond

Re: Issue 1592 in sympy: Pretty print Sum with a Sigma

2013-05-16 Thread sympy
Comment #12 on issue 1592 by asmeu...@gmail.com: Pretty print Sum with a Sigma http://code.google.com/p/sympy/issues/detail?id=1592 Yeah, but that's a single character. Somehow n2 Σ i i = 0 doesn't look that good to me. -- You received this message because this project is configu