On 25 Jul., 05:17, Matthew Brett <matthew.br...@gmail.com> wrote:
> Hi,
>
> On Sun, Jul 24, 2011 at 10:22 PM, Vinzent Steinberg
>
> <vinzent.steinb...@googlemail.com> wrote:
> > On Jul 24, 1:28 am, Matthew Brett <matthew.br...@gmail.com> wrote:
> >> To me, that inconsistency is a benefit.  Is there some disbenefit?
> >> I'm asking honestly.  For me it is just a question of reduced
> >> readability in doctests and examples.
>
> > How would you get floating point numbers in doctests where you want
> > exact numbers?
>
> I hesitate to belabor a point that seems agreed, but this is the
> doctest that caused me to notice:
>
> https://github.com/statsmodels/formula/blob/master/formula/random_eff...
>
> It comes up because we have array entries that can be floats or
> symbols, and it's convenient to process the array by using using
> numpy.dot with an array of floats.

Thanks, I have been curious. I think you should explicitly convert the
floats to ints in this case. (As already discussed, there is a reason
that Python does not autosimplify 1.0 to 1.)

Vinzent

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to