Issue 3114 in sympy: x._random() returns None if x.is_positive is True

2012-02-28 Thread sympy
Status: Accepted Owner: Labels: Type-Defect Priority-Medium NeedsReview smichr New issue 3114 by smi...@gmail.com: x._random() returns None if x.is_positive is True http://code.google.com/p/sympy/issues/detail?id=3114 This is fixed in https://github.com/sympy/sympy/pull/1085 -- You rece

Re: Issue 3109 in sympy: sqrt(exp(4*a)) != exp(2*a)

2012-02-28 Thread sympy
Comment #1 on issue 3109 by smi...@gmail.com: sqrt(exp(4*a)) != exp(2*a) http://code.google.com/p/sympy/issues/detail?id=3109 http://en.wikipedia.org/wiki/Exponentiation#Complex_powers_of_positive_real_numbers says "the identity (b**z)**u = b**(z*u) [where b is a positive real] is valid...

Re: Issue 2571 in sympy: Regression in Integral.subs

2012-02-28 Thread sympy
Comment #14 on issue 2571 by smi...@gmail.com: Regression in Integral.subs http://code.google.com/p/sympy/issues/detail?id=2571 Just a footnote here: xreplace is now available Integral((exp(x*log(x))*log(x)), x).xreplace({exp(x*log(x)): x**x}) Integral(x**x*log(x), x) With it, you can shoot

Re: Issue 3106 in sympy: zoo*zoo == nan

2012-02-28 Thread sympy
Comment #4 on issue 3106 by asmeu...@gmail.com: zoo*zoo == nan http://code.google.com/p/sympy/issues/detail?id=3106 That is to say, what you think they should be is wrong. 0 + 0*I should be 0, which is not the same as zoo. -zoo == zoo (because it represents *all* points at infinity in the co

Re: Issue 2571 in sympy: Regression in Integral.subs

2012-02-28 Thread sympy
Comment #15 on issue 2571 by asmeu...@gmail.com: Regression in Integral.subs http://code.google.com/p/sympy/issues/detail?id=2571 I still think subs should just do this. Substituting terms inside of integrals is very useful, and this limitation is artificial and unnecessary. -- You received

Re: Issue 2571 in sympy: Regression in Integral.subs

2012-02-28 Thread sympy
Comment #16 on issue 2571 by asmeu...@gmail.com: Regression in Integral.subs http://code.google.com/p/sympy/issues/detail?id=2571 That is to say, even for definite integrals it should work. I found myself wanting to do this quite a bit a while ago when working with solving PDEs with integral

Re: Issue 2566 in sympy: Equating Sums shouldn't depend on dummy variables

2012-02-28 Thread sympy
Comment #4 on issue 2566 by asmeu...@gmail.com: Equating Sums shouldn't depend on dummy variables http://code.google.com/p/sympy/issues/detail?id=2566 I'm increasingly against converting Symbols to Dummys internally. This makes it impossible to do substitutions on the arguments. For examp

Re: Issue 2440 in sympy: Equal Integrals compare different when using different variables

2012-02-28 Thread sympy
Comment #13 on issue 2440 by asmeu...@gmail.com: Equal Integrals compare different when using different variables http://code.google.com/p/sympy/issues/detail?id=2440 I think that perhaps they should compare unequal. Making them equal would be inconvenient. For example, pretend for a mome

Re: Issue 3025 in sympy: Piecewise evaluate=False does not work when conditions are boolean

2012-02-28 Thread sympy
Comment #8 on issue 3025 by ronan.l...@gmail.com: Piecewise evaluate=False does not work when conditions are boolean http://code.google.com/p/sympy/issues/detail?id=3025 Let's use this to discuss what evaluate=False *should* do. #6 describes current behaviour in master. I think that it's wro

Re: Issue 3025 in sympy: Piecewise evaluate=False does not work when conditions are boolean

2012-02-28 Thread sympy
Updates: Labels: -Priority-Medium Priority-High Comment #9 on issue 3025 by asmeu...@gmail.com: Piecewise evaluate=False does not work when conditions are boolean http://code.google.com/p/sympy/issues/detail?id=3025 To summarize a discussion from the pull request: Piecewise((x, x > 1

Issue 3115 in sympy: ImportError: No module named pretty

2012-02-28 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 3115 by nils...@gmail.com: ImportError: No module named pretty http://code.google.com/p/sympy/issues/detail?id=3115 nwagner@linux-itfv:~/git/sympy> python setup.py install --prefix=$HOME/local Traceback (most recent call last)

Re: Issue 688 in sympy: generate documentation from tests

2012-02-28 Thread sympy
Comment #3 on issue 688 by vlada.pe...@gmail.com: generate documentation from tests http://code.google.com/p/sympy/issues/detail?id=688 Could we use IPython notebooks somehow for this? I think we already agreed that we are going to include them. -- You received this message because you ar

Issue 3116 in sympy: init_printing() should recalculate terminal width

2012-02-28 Thread sympy
Status: Accepted Owner: Labels: Type-Defect Priority-Medium Printing New issue 3116 by asmeu...@gmail.com: init_printing() should recalculate terminal width http://code.google.com/p/sympy/issues/detail?id=3116 If I make my terminal wider (i.e., change the number of columns) and re-call

Issue 3117 in sympy: -+inf with pretty printer and Float('inf')

2012-02-28 Thread sympy
Status: Accepted Owner: Labels: Type-Defect Priority-Medium Printing New issue 3117 by asmeu...@gmail.com: -+inf with pretty printer and Float('inf') http://code.google.com/p/sympy/issues/detail?id=3117 In [136]: print f alpha*(exp(x - 1) - 1)/(exp(x) - 1) In [137]: print f.subs(alpha,

Re: Issue 2440 in sympy: Equal Integrals compare different when using different variables

2012-02-28 Thread sympy
Comment #14 on issue 2440 by ronan.l...@gmail.com: Equal Integrals compare different when using different variables http://code.google.com/p/sympy/issues/detail?id=2440 The hole in your argument is that if Integral(exp(-x**2), (x, -oo, oo)) != Integral(exp(-y**2), (y, -oo, oo)), you can nev

Re: Issue 2566 in sympy: Equating Sums shouldn't depend on dummy variables

2012-02-28 Thread sympy
Comment #5 on issue 2566 by ronan.l...@gmail.com: Equating Sums shouldn't depend on dummy variables http://code.google.com/p/sympy/issues/detail?id=2566 The traceback is because you used a set instead of a dict. I wonder what result you expected. Lambda(1/y, 2/y) doesn't make sense and if

Re: Issue 3025 in sympy: Piecewise evaluate=False does not work when conditions are boolean

2012-02-28 Thread sympy
Comment #10 on issue 3025 by ronan.l...@gmail.com: Piecewise evaluate=False does not work when conditions are boolean http://code.google.com/p/sympy/issues/detail?id=3025 I'd rather base the discussion on the existing behaviour (and ignore the difference between evaluating to nan and raisin

Re: Issue 3025 in sympy: Piecewise evaluate=False does not work when conditions are boolean

2012-02-28 Thread sympy
Comment #11 on issue 3025 by sean.v@gmail.com: Piecewise evaluate=False does not work when conditions are boolean http://code.google.com/p/sympy/issues/detail?id=3025 Ronan, what I understand as the rationalization of that behavior is if a boolean condition is encountered, it is because

Re: Issue 2571 in sympy: Regression in Integral.subs

2012-02-28 Thread sympy
Comment #17 on issue 2571 by smi...@gmail.com: Regression in Integral.subs http://code.google.com/p/sympy/issues/detail?id=2571 Why not just do i = my_integral inew = i.func(i.function.subs(old, new), i.limits) Otherwise you have to come up with an acceptable criteria to govern the rules of th

Re: Issue 2571 in sympy: Regression in Integral.subs

2012-02-28 Thread sympy
Comment #18 on issue 2571 by asmeu...@gmail.com: Regression in Integral.subs http://code.google.com/p/sympy/issues/detail?id=2571 I think we already discussed this. That doesn't work so well if the integral is nested inside an expression. Let's just do the substitution if it works, and raise

Re: Issue 3108 in sympy: wrong code in Polygon.arbitrary_point

2012-02-28 Thread sympy
Comment #3 on issue 3108 by smi...@gmail.com: wrong code in Polygon.arbitrary_point http://code.google.com/p/sympy/issues/detail?id=3108 Is there ever a case where, for this geometry case, this is not true? (i.e. what's the failing situation?) -- You received this message because you are

Re: Issue 2571 in sympy: Regression in Integral.subs

2012-02-28 Thread sympy
Comment #19 on issue 2571 by smi...@gmail.com: Regression in Integral.subs http://code.google.com/p/sympy/issues/detail?id=2571 Regarding the nesting...that's where xreplace can be used where the transform acts on all Integrals that are in the expression. If you look at how Ronan implemented

Re: Issue 2571 in sympy: Regression in Integral.subs

2012-02-28 Thread sympy
Comment #20 on issue 2571 by asmeu...@gmail.com: Regression in Integral.subs http://code.google.com/p/sympy/issues/detail?id=2571 I guess I would expect that to give Integral(y, (y, y**2)). I get that the user might expect it to do something smart with a change of variables (e.g., with Integr