Status: New
Owner:
Labels: Type-Defect Priority-Medium
New issue 2057 by asteppke: Units do not work together with evalf?
http://code.google.com/p/sympy/issues/detail?id=2057
Hi everybody,
while working with the sympy.physics module an issue with the units
appeared. I hope I am using the
Comment #4 on issue 2057 by smi...@gmail.com: Units do not work together
with evalf?
http://code.google.com/p/sympy/issues/detail?id=2057
The other option is to do the subs before evalf is requested:
>>> g.subs(v, 1).evalf()
3.33564095198152e-9*s/m
--
You received this message becau
Updates:
Labels: Matching
Comment #5 on issue 2057 by smi...@gmail.com: Units do not work together
with evalf?
http://code.google.com/p/sympy/issues/detail?id=2057
(No comment was entered for this change.)
--
You received this message because you are subscribed to the Google Groups
Comment #6 on issue 2057 by smi...@gmail.com: Units do not work together
with evalf?
http://code.google.com/p/sympy/issues/detail?id=2057
The precision of the Floats in the dictionary can be changed before each
iterative evaluation attempt. Because of automatic evaluation, substitution
of
Updates:
Labels: Evalf
Comment #7 on issue 2057 by smi...@gmail.com: Units do not work together
with evalf?
http://code.google.com/p/sympy/issues/detail?id=2057
(No comment was entered for this change.)
--
You received this message because you are subscribed to the Google Groups
"sy
Comment #9 on issue 2057 by smi...@gmail.com: Units do not work together
with evalf?
http://code.google.com/p/sympy/issues/detail?id=2057
A workaround for this (which is similar to issue 1583) is
v/u.c
v*s/(299792458*m)
nfloat(_.subs(v, 10))
3.33564095198152e-8*s/m
--
You received this
Updates:
Status: Accepted
Comment #1 on issue 2057 by asmeurer: Units do not work together with evalf?
http://code.google.com/p/sympy/issues/detail?id=2057
That is definitely a bug; it should just work. I am guessing that the
reason that evalf has a subs keyword argument is that it is
Updates:
Labels: NeedsReview smichr
Comment #2 on issue 2057 by smichr: Units do not work together with evalf?
http://code.google.com/p/sympy/issues/detail?id=2057
I don't see any reason not to do the subs up front. The subs are finally
tried after other failures. With the patch of 205
Updates:
Cc: fredrik.johansson
Labels: -NeedsReview -smichr NeedsBetterPatch
Comment #3 on issue 2057 by asmeurer: Units do not work together with evalf?
http://code.google.com/p/sympy/issues/detail?id=2057
I am pretty sure there is a good reason for passing the substitution to