Re: Issue 1380 in sympy: solve(2*x/(x+2)-1,x) gives error

2011-09-02 Thread sympy
Updates: Status: Fixed Comment #5 on issue 1380 by smi...@gmail.com: solve(2*x/(x+2)-1,x) gives error http://code.google.com/p/sympy/issues/detail?id=1380 this gives [2] in master -- You received this message because you are subscribed to the Google Groups sympy-issues group. To

Re: Issue 1367 in sympy: solve(exp(x)/(8*(a + x)**2), x) fails

2011-09-02 Thread sympy
Updates: Status: Fixed Comment #6 on issue 1367 by smi...@gmail.com: solve(exp(x)/(8*(a + x)**2), x) fails http://code.google.com/p/sympy/issues/detail?id=1367 In master this now gives: solve(exp(x)/(8*(a + x)**2), x) [zoo] solve(1/log(a*x), x) [] solve(exp(x), x) [zoo] Since

Re: Issue 2658 in sympy: Abi disable checking in solve()

2011-09-02 Thread sympy
Updates: Status: Fixed Comment #6 on issue 2658 by smi...@gmail.com: Abi disable checking in solve() http://code.google.com/p/sympy/issues/detail?id=2658 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups

Re: Issue 1629 in sympy: solve() raises an exception for quartic equation

2011-09-02 Thread sympy
Updates: Status: Fixed Comment #8 on issue 1629 by smi...@gmail.com: solve() raises an exception for quartic equation http://code.google.com/p/sympy/issues/detail?id=1629 This solves without error in master; ans=solve(fn,w) count_ops(ans) 157705 -- You received this message

Re: Issue 1968 in sympy: solve should not return infinities nor nan

2011-09-02 Thread sympy
Comment #5 on issue 1968 by smi...@gmail.com: solve should not return infinities nor nan http://code.google.com/p/sympy/issues/detail?id=1968 see also http://code.google.com/p/sympy/issues/detail?id=1367 -- You received this message because you are subscribed to the Google Groups

Re: Issue 1367 in sympy: solve(exp(x)/(8*(a + x)**2), x) fails

2011-09-02 Thread sympy
Comment #7 on issue 1367 by smi...@gmail.com: solve(exp(x)/(8*(a + x)**2), x) fails http://code.google.com/p/sympy/issues/detail?id=1367 see http://code.google.com/p/sympy/issues/detail?id=1968 -- You received this message because you are subscribed to the Google Groups sympy-issues group.

Re: Issue 1572 in sympy: solve() should be able to solve expressions where variable only appears once

2011-09-02 Thread sympy
Updates: Labels: -EasyToFix smichr NeedsReview Comment #4 on issue 1572 by smi...@gmail.com: solve() should be able to solve expressions where variable only appears once http://code.google.com/p/sympy/issues/detail?id=1572 https://github.com/sympy/sympy/pull/582 -- You received this

Re: Issue 1368 in sympy: solve((a**2 + 1) * (sin(a*x) + cos(a*x)), x) fails

2011-09-02 Thread sympy
Comment #6 on issue 1368 by smi...@gmail.com: solve((a**2 + 1) * (sin(a*x) + cos(a*x)), x) fails http://code.google.com/p/sympy/issues/detail?id=1368 Should rewriting be part of solve's responsibility? This solves easily when re-written in terms of tan: solve(((a**2 + 1) * (sin(a*x) +

Re: Issue 2665 in sympy: count doesn't count

2011-09-02 Thread sympy
Comment #1 on issue 2665 by smi...@gmail.com: count doesn't count http://code.google.com/p/sympy/issues/detail?id=2665 Mateusz, is this a valid workaround or did you have something more substantial in mind? -- You received this message because you are subscribed to the Google Groups

Re: Issue 2181 in sympy: evalf returns incorrect value.

2011-09-02 Thread sympy
Comment #3 on issue 2181 by smi...@gmail.com: evalf returns incorrect value. http://code.google.com/p/sympy/issues/detail?id=2181 In py 2.7, win32 I get ( sqrt( 4*x**2 + 1 ) ).evalf(subs={x:10}) 20.0249843945008 ( sqrt( 4*x**2 ) ).evalf(subs={x:10}) 20.0 Perhaps this can

Re: Issue 1975 in sympy: nsimplify() should be recursive

2011-09-02 Thread sympy
Comment #8 on issue 1975 by smi...@gmail.com: nsimplify() should be recursive http://code.google.com/p/sympy/issues/detail?id=1975 Current master gives nsimplify(1./7 * x) 0.142857142857143*x nsimplify(1./7 * x,rational=1) x/7 nsimplify(1./7) 1/7 but it does seem to me that if the

Re: Issue 1844 in sympy: expand methods pruned

2011-09-02 Thread sympy
Comment #9 on issue 1844 by asmeurer: expand methods pruned http://code.google.com/p/sympy/issues/detail?id=1844 This still doesn't explain to me why the caching system (which can be either enabled or disabled, so should be completely separate from actual functionality) needs to

Re: Issue 2667 in sympy: is there a way to invert mixed matrices with floating-point arithmetic?

2011-09-02 Thread sympy
Updates: Status: Invalid Comment #1 on issue 2667 by asmeurer: is there a way to invert mixed matrices with floating-point arithmetic? http://code.google.com/p/sympy/issues/detail?id=2667 Hi. Can you please ask this on our mailing list (http://groups.google.com/group/sympy)? Not

Re: Issue 1572 in sympy: solve() should be able to solve expressions where variable only appears once

2011-09-02 Thread sympy
Comment #5 on issue 1572 by asmeurer: solve() should be able to solve expressions where variable only appears once http://code.google.com/p/sympy/issues/detail?id=1572 I only see one small change to the solving functionality in that pull request (the first commit). Has every other inverse

Re: Issue 1368 in sympy: solve((a**2 + 1) * (sin(a*x) + cos(a*x)), x) fails

2011-09-02 Thread sympy
Comment #7 on issue 1368 by asmeurer: solve((a**2 + 1) * (sin(a*x) + cos(a*x)), x) fails http://code.google.com/p/sympy/issues/detail?id=1368 Should rewriting be part of solve's responsibility? Definitely. solve() should do anything it can to get an (exact) solution out of the

Re: Issue 1857 in sympy: evalf/simplify accuracy

2011-09-02 Thread sympy
Updates: Cc: Vinzent.Steinberg Comment #3 on issue 1857 by smi...@gmail.com: evalf/simplify accuracy http://code.google.com/p/sympy/issues/detail?id=1857 Rather than start a new issue, I would like to pick this one up again. The one place where sympy should do better is in computing

Re: Issue 2181 in sympy: evalf returns incorrect value.

2011-09-02 Thread sympy
Updates: Status: Invalid Comment #4 on issue 2181 by asmeurer: evalf returns incorrect value. http://code.google.com/p/sympy/issues/detail?id=2181 I don't think anyone was ever able to actually reproduce this problem. To the original author (or anyone else): if you still get this

Re: Issue 1975 in sympy: nsimplify() should be recursive

2011-09-02 Thread sympy
Comment #9 on issue 1975 by asmeurer: nsimplify() should be recursive http://code.google.com/p/sympy/issues/detail?id=1975 See issue 2100. nsimplify() rarely works if you don't pass any flags. -- You received this message because you are subscribed to the Google Groups sympy-issues group. To

Re: Issue 1844 in sympy: expand methods pruned

2011-09-02 Thread sympy
Comment #10 on issue 1844 by smi...@gmail.com: expand methods pruned http://code.google.com/p/sympy/issues/detail?id=1844 It doesn't if all code that expects a boolean would just check `if flag` or `if not flag` instead of assuming that the flag is True or False. At the time this seemed like

Re: Issue 1975 in sympy: nsimplify() should be recursive

2011-09-02 Thread sympy
Comment #10 on issue 1975 by smi...@gmail.com: nsimplify() should be recursive http://code.google.com/p/sympy/issues/detail?id=1975 But in the example given, it does work if there is no symbol; and doesn't even if a tolerance *is* set: nsimplify(x/7.,tolerance=1e-3)

Re: Issue 1572 in sympy: solve() should be able to solve expressions where variable only appears once

2011-09-02 Thread sympy
Comment #6 on issue 1572 by smi...@gmail.com: solve() should be able to solve expressions where variable only appears once http://code.google.com/p/sympy/issues/detail?id=1572 A search for def inverse shows the following functions which all work: ```python [exp(3)] [log(3)] ... print i,

Re: Issue 2667 in sympy: is there a way to invert mixed matrices with floating-point arithmetic?

2011-09-02 Thread sympy
Comment #2 on issue 2667 by alke...@gmail.com: is there a way to invert mixed matrices with floating-point arithmetic? http://code.google.com/p/sympy/issues/detail?id=2667 Thank you for the advice asmeurer. It also was strange for me posting this on the bugtracker but it said so in the

Re: Issue 1368 in sympy: solve((a**2 + 1) * (sin(a*x) + cos(a*x)), x) fails

2011-09-02 Thread sympy
Comment #8 on issue 1368 by smi...@gmail.com: solve((a**2 + 1) * (sin(a*x) + cos(a*x)), x) fails http://code.google.com/p/sympy/issues/detail?id=1368 Here are some new solutions, then, made possible by rewriting in tan or tanh: ```python [3*pi/(4*a), -pi/(4*a)] [2*atanh(1/2)/a]

Re: Issue 2033 in sympy: solve should be able to handle rational function systems

2011-09-02 Thread sympy
Comment #12 on issue 2033 by smi...@gmail.com: solve should be able to handle rational function systems http://code.google.com/p/sympy/issues/detail?id=2033 Unless there are other ideas, I will just try solve the numerators of systems of equations and then check that the results don't set

Re: Issue 1844 in sympy: expand methods pruned

2011-09-02 Thread sympy
Comment #11 on issue 1844 by asmeurer: expand methods pruned http://code.google.com/p/sympy/issues/detail?id=1844 I don't think that was the issue there. Anyway, it shouldn't matter if there are two cache entries for Mul(evaluate=False) and Mul(evaluate=0). It will waste space, but it

Re: Issue 1572 in sympy: solve() should be able to solve expressions where variable only appears once

2011-09-02 Thread sympy
Comment #7 on issue 1572 by asmeurer: solve() should be able to solve expressions where variable only appears once http://code.google.com/p/sympy/issues/detail?id=1572 Does this do anything with respect to issue 2246, i.e., allow you to ignore or not ignore things like log(exp(x)) != x or

Re: Issue 2667 in sympy: is there a way to invert mixed matrices with floating-point arithmetic?

2011-09-02 Thread sympy
Comment #3 on issue 2667 by asmeurer: is there a way to invert mixed matrices with floating-point arithmetic? http://code.google.com/p/sympy/issues/detail?id=2667 Do you mean If something cannot be easily accesible from this page, it's a bug? I guess if you phrase your question as a

Re: Issue 1844 in sympy: expand methods pruned

2011-09-02 Thread sympy
Comment #12 on issue 1844 by asmeurer: expand methods pruned http://code.google.com/p/sympy/issues/detail?id=1844 I don't think that was the issue there. To be more clear, the problem there was Mul(evaluate=False) vs. Mul(evaluate=True), and how those were hashing differently. Actually,

Re: Issue 2667 in sympy: is there a way to invert mixed matrices with floating-point arithmetic?

2011-09-02 Thread sympy
Comment #4 on issue 2667 by alke...@gmail.com: is there a way to invert mixed matrices with floating-point arithmetic? http://code.google.com/p/sympy/issues/detail?id=2667 Yes I know. Thank you for directing me where I will get helped faster. Is there anyway I can delete this from the

Re: Issue 1233 in sympy: fix the rest of jython bugs

2011-09-02 Thread sympy
Comment #17 on issue 1233 by alan.ken...@gmail.com: fix the rest of jython bugs http://code.google.com/p/sympy/issues/detail?id=1233 Comment made on jython bug report. Essence: Why has this optimisation hack been accepted into the project? If it's a platform specific optimisation hack

Re: Issue 2246 in sympy: Global directive to switch strict transformations

2011-09-02 Thread sympy
Comment #10 on issue 2246 by smi...@gmail.com: Global directive to switch strict transformations http://code.google.com/p/sympy/issues/detail?id=2246 The reason that solve(atan(x)-y, x) does not return [tan(y)] is because the inverse is not defined for atan: tan(x).inverse()

Re: Issue 1572 in sympy: solve() should be able to solve expressions where variable only appears once

2011-09-02 Thread sympy
Comment #8 on issue 1572 by smi...@gmail.com: solve() should be able to solve expressions where variable only appears once http://code.google.com/p/sympy/issues/detail?id=1572 Although `sqrt(x**2)` is not always equal to `x`, if you say that `sqrt(x**2) = 3` then x can be `+/-3`, and that's

Re: Issue 1844 in sympy: expand methods pruned

2011-09-02 Thread sympy
Comment #13 on issue 1844 by smi...@gmail.com: expand methods pruned http://code.google.com/p/sympy/issues/detail?id=1844 If I remove that code, the cache still contains different items (as you said) but the hashes are the same. I'm not sure where/how that is happening:

Re: Issue 1844 in sympy: expand methods pruned

2011-09-02 Thread sympy
Comment #14 on issue 1844 by smi...@gmail.com: expand methods pruned http://code.google.com/p/sympy/issues/detail?id=1844 The boolification of kwargs has been removed. All tests pass. -- You received this message because you are subscribed to the Google Groups sympy-issues group. To post to

Re: Issue 2246 in sympy: Global directive to switch strict transformations

2011-09-02 Thread sympy
Updates: Labels: NeedsReview smichr Comment #11 on issue 2246 by smi...@gmail.com: Global directive to switch strict transformations http://code.google.com/p/sympy/issues/detail?id=2246 Inverses of functions not having a strict inverse are now recognized in solve so `solve(atan(x)

Re: Issue 2033 in sympy: solve should be able to handle rational function systems

2011-09-02 Thread sympy
Updates: Labels: NeedsReview smichr Comment #13 on issue 2033 by smi...@gmail.com: solve should be able to handle rational function systems http://code.google.com/p/sympy/issues/detail?id=2033 The first two examples in C1 fail for reasons different than the OP example. The OP