Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2008-10-07 Thread codesite-noreply
Issue 1053: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 Comment #8 by fabian.seoane: Well, I'm a bit skeptical about preparsing or anything that changes the behaviour of the python console. Let's not forget that we are building a PYTHON LIBRA

Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2008-10-07 Thread codesite-noreply
Issue 1053: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 Comment #9 by ondrej.certik: Yes, we are building a library and that is the most important thing. Optionally though, I think it's cool to have it. -- You received this message because

Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2008-11-12 Thread codesite-noreply
Issue 1053: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 Comment #10 by ondrej.certik: Deferring, I think it is not so important for this release. Issue attribute updates: Labels: -Milestone-Release0.6.3 -- You received this message b

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2011-11-13 Thread sympy
Comment #11 on issue 1053 by smi...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 This should probably be revisited as we move towards py3k -- You received this message because you are subscribed to the Google Groups "sympy-issues

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2011-11-14 Thread sympy
Updates: Labels: -Type-Defect Type-Enhancement EasyToFix Comment #12 on issue 1053 by asmeu...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 So if I understand the issue correctly, it's to add an option to sympify() to not

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2011-11-14 Thread sympy
Comment #13 on issue 1053 by smi...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 Actually, as I read it I imagined that in py3k `sympify(1/2 + x) -> 1/2 + x` with the `0.5` that `1/2` generates automatically going to `S.Half` r

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2011-11-14 Thread sympy
Comment #14 on issue 1053 by asmeu...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 We already have a rational option in sympify, which does this. -- You received this message because you are subscribed to the Google Groups "sympy

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2011-11-14 Thread sympy
Comment #15 on issue 1053 by smi...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 That was the functionality that I was referring to. But this issue is suggesting that at least some subset of fractions be automatically rationalized.

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2011-11-15 Thread sympy
Comment #16 on issue 1053 by asmeu...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 I don't know how you could choose one subset over another. And anyway, I think the default should remain rational=False. Regarding what I thoug

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2012-01-24 Thread sympy
Comment #17 on issue 1053 by smi...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 A way to choose battles you can win (with converting floats to Rationals) is to convert only those that are exact in base 2: if m = log(n)/log(2) an

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2012-01-24 Thread sympy
Comment #18 on issue 1053 by smi...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 Sorry, that request is at https://github.com/sympy/sympy/pull/998. -- You received this message because you are subscribed to the Google Groups "sym

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2012-01-24 Thread sympy
Comment #19 on issue 1053 by smi...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 (The math is wrong in comment 17, but the idea is right.) -- You received this message because you are subscribed to the Google Groups "sympy-issues

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2012-02-03 Thread sympy
Comment #20 on issue 1053 by smi...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 The function that could be used is '_exact_decimal' and is available in commit 0a9e423eee78826746e76e3e9932bdee04ea4bdd (but it was removed later).

Re: Issue 1053 in sympy: make sympify intelligent about 1/2 and 0.5

2012-03-19 Thread sympy
Updates: Status: NeedsDecision Labels: -EasyToFix Comment #21 on issue 1053 by ronan.l...@gmail.com: make sympify intelligent about 1/2 and 0.5 http://code.google.com/p/sympy/issues/detail?id=1053 I think that this would be way too much magic. Consider the fractions (2**n +