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: 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: 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
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
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
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
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
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.
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
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
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
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
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).
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
+
14 matches
Mail list logo