Boost logo

Boost :

From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2001-07-16 12:56:07


I believe you should use more decimal places
as in the proposed Boost math constants.
This will avoid any potential roundoff problems.
(You need TWO extra decimal places to make sure that
the binary value is as accurate as it can be, that is
only one least significant bit).

The 40 decimal values given in my proposal
can conveniently be used for this purpose for long double
up to 128 bit real/floating point values.

Paul

Dr Paul A Bristow, hetp Chromatography
Prizet Farmhouse
Kendal, Cumbria
LA8 8AB UK
+44 1539 561830
mailto:pbristow_at_[hidden]
 

> -----Original Message-----
> From: Michael Stevens [mailto:michael_at_[hidden]]
> Sent: Wednesday, July 11, 2001 1:39 AM
> To: boost_at_[hidden]
> Subject: [boost] Angular arithmetic
;
>
> template <class real>
> const real angle<real>::Pi = real(3.1415926535898);
> template <class real>
> const real angle<real>::Pi2 = real(3.1415926535898 * 2.);
> template <class real>
> const real angle<real>::Deg2Rad = real(3.1415926535898) / real(180.);
>
> Michael Stevens
> Senior Research Engineer
> Tel: +61 2 93512075 Fax: +61 2 93517474
> Australian Centre for Field Robotics
> Rose Street Building J04
> The University of Sydney NSW, 2006
> Australia
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk