Re: [PATCH 2/2] Added method Dummy.as_nondummy()

2010-04-05 Thread Ondrej Certik
On Sun, Apr 4, 2010 at 11:34 PM, Øyvind Jensen jensen.oyv...@gmail.com wrote: Well,  I think it can be useful, especially since the commutative property is lost if you do s = Symbol(dummy.name, *dummy.assumptions0) But of course, it should not go in if I am the only one who is going to use

Re: Added method Dummy.as_nondummy()

2010-04-05 Thread jegerjensen
All right, lets drop it, no big deal. Øyvind On 5 apr, 19:25, Ondrej Certik ond...@certik.cz wrote: On Sun, Apr 4, 2010 at 11:34 PM, Øyvind Jensen jensen.oyv...@gmail.com wrote: Well,  I think it can be useful, especially since the commutative property is lost if you do s =

Re: [PATCH 2/2] Added method Dummy.as_nondummy()

2010-04-04 Thread Øyvind Jensen
Well, I think it can be useful, especially since the commutative property is lost if you do s = Symbol(dummy.name, *dummy.assumptions0) But of course, it should not go in if I am the only one who is going to use it. I see your point about the need for a cleanup in the core :-P Øyvind ma.,

[PATCH 2/2] Added method Dummy.as_nondummy()

2010-03-31 Thread Øyvind Jensen
In situations where it is natural to generate dummy symbols with Symbol.as_dummy(), the reverse process may also be useful. Uncommented two tests for this. --- sympy/core/symbol.py| 11 +++ sympy/core/tests/test_symbol.py |4 ++-- 2 files changed, 13 insertions(+), 2

Re: Added method Dummy.as_nondummy()

2010-03-31 Thread jegerjensen
I also put these patches on github/fix_dummy cheers! Øyvind On 31 Mar, 12:56, Øyvind Jensen jensen.oyv...@gmail.com wrote: In situations where it is natural to generate dummy symbols with Symbol.as_dummy(), the reverse process may also be useful. Uncommented two tests for this. ---