Search the web
Sign In
New User? Sign Up
boost · C++ Boost
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Rational precision issues (Was: Standardization of Boost librarie s)   Message List  
Reply | Forward Message #27133 of 27136 |
RE: [boost] Rational precision issues

I think we can only find if the overflow problem is a serious practical
problem
but letting people try it - they HAVE been warned!

Paul

PS Nobody has responded to my query if the compiler can be
persuaded to insert checks (see CSR?) and do something on overflow.
All hardware can do something, if believe, but somehowC++ code (at least
portable code)
never uses this. Is this something Boost can help with?

> -----Original Message-----
> From: Steve M. Robbins [mailto:steven.robbins@...]
> Sent: Friday, March 15, 2002 2:12 PM
> To: boost@yahoogroups.com
> Subject: Re: [boost] Rational precision issues
>
>
> On Thu, Mar 14, 2002 at 09:49:14AM -0000, Paul A. Bristow wrote:
> > I believe a templated rational WILL be useful and will be used
> with 32 or 64
> > bit integers, (or unlimited precision integers when available).
> >
> > Isn't the key advantage of rational is that results remain EXACT (no
> > rounding etc)?
>
> Yes, but that is only true if you use an arbitrary-precision integer
> package. And only if you stick to using the four basic arithmetic ops
> -- no sqrt(), no trig.
>
> > And perhaps rationals are quick too?
>
> Not if you use arbitrary-precision integers :-)
>
>
> -S
>
> --
> by Rocket to the Moon,
> by Airplane to the Rocket,
> by Taxi to the Airport,
> by Frontdoor to the Taxi,
> by throwing back the blanket and laying down the legs ...
> - They Might Be Giants
>
>
> Info: http://www.boost.org Send unsubscribe requests to:
> <mailto:boost-unsubscribe@yahoogroups.com>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>




Mon Mar 18, 2002 11:27 pm

pabristow_hetp
Offline Offline
Send Email Send Email

Forward
Message #27133 of 27136 |
Expand Messages Author Sort by Date

From: "Chuck Allison" <cda@...> ... The rational<> class will work fine with an unlimited-precision type. The problem arises when the rational<>...
Moore, Paul
pf_moore
Offline Send Email
Mar 12, 2002
8:54 am

I believe a templated rational WILL be useful and will be used with 32 or 64 bit integers, (or unlimited precision integers when available). Isn't the key...
Paul A. Bristow
pabristow_hetp
Offline Send Email
Mar 15, 2002
12:49 am

... Yes, but that is only true if you use an arbitrary-precision integer package. And only if you stick to using the four basic arithmetic ops -- no sqrt(),...
Steve M. Robbins
steven.robbins@...
Send Email
Mar 15, 2002
2:11 pm

I think we can only find if the overflow problem is a serious practical problem but letting people try it - they HAVE been warned! Paul PS Nobody has responded...
Paul A. Bristow
pabristow_hetp
Offline Send Email
Mar 18, 2002
11:26 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help