Re: [sage-devel] CDF(0) and CC(0)

2010-04-24 Thread Robert Bradshaw
On Apr 19, 2010, at 8:31 PM, Jason Grout wrote: Look at this inconsistency: sage: RR(0) 0.000 sage: RDF(0) 0.0 However: sage: CDF(0) 0 sage: CC(0) 0 Shouldn't CDF(0) and CC(0) also print out decimals like RR(0) and RDF(0)? I've posted a very small patch which does this on h

Re: [sage-devel] CDF(0) and CC(0)

2010-04-20 Thread William Stein
On Monday, April 19, 2010, Tom Boothby wrote: > +1 to consistency.  IMHO, imprecise fields should represent their zero > as 0.0, as floats do. Jason's patch does not do that > > On Mon, Apr 19, 2010 at 8:31 PM, Jason Grout > wrote: >> Look at this inconsistency: >> >> sage: RR(0) >> 0.

Re: [sage-devel] CDF(0) and CC(0)

2010-04-19 Thread Tom Boothby
+1 to consistency. IMHO, imprecise fields should represent their zero as 0.0, as floats do. On Mon, Apr 19, 2010 at 8:31 PM, Jason Grout wrote: > Look at this inconsistency: > > sage: RR(0) > 0.000 > sage: RDF(0) > 0.0 > > > However: > > sage: CDF(0) > 0 > sage: CC(0) > 0 > > > Shoul