Boost logo

Boost Users :

Subject: Re: [Boost-users] [Math] Best Way to Produce Pi
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-10-08 07:28:35


On 2010-10-08 13:19, Hossein Haeri wrote:
> Dear all,
>
> What's my best way to define a constant for Pi. I'm thinking of using the following<cmath> stuff:
>
> const double pi(4 * atan(1));
>
> Does Boost provide a better solution?
>
> TIA,
> --Hossein

Stuff like this?

http://www.boost.org/doc/libs/1_44_0/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/constants.html

Cheers,

Rutger


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net