On Fri, Jun 1, 2012 at 12:30 PM, Bharath M R <catchmrbhar...@gmail.com> wrote: > Hi, > I was trying to implement interval arithmetic using numpy for plotting. I > could not possibly find a way > to **round up** a floating point value. ie sin(<1, 1>) = <0.841, 0.842> > rounded to 3 decimals. I would like
How about round down and then add your interval width? >>> n=sin(1) >>> a=n.round(3) >>> b=(a+10**-3).round(3) >>> a,b (0.841, 0.842) -- 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.