Date: Mon, 15 Nov 2010 19:41:52 +0000 From: Chris Rees <utisoft@gmail.com> To: Wojciech Puchar <wojtek@tensor.gdynia.pl> Cc: Arthur Bela <jozsi.avadkan@gmail.com>, FreeBSD Mailing list <freebsd-questions@freebsd.org> Subject: Re: how to generate pi in c Message-ID: <AANLkTimdwxhPXQg2_xr7hGrRjBBURt%2B6dxELBvo7=1Eh@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.1011111306380.45521@tensor.gdynia.pl> References: <AANLkTikaBYi0d4dvLnc=vxuPDWQHDqrVJrz=iVkECeO=@mail.gmail.com> <alpine.BSF.2.00.1011111306380.45521@tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11 November 2010 12:06, Wojciech Puchar <wojtek@tensor.gdynia.pl> wrote: > >> Does anyone has a "generate-pi.c" source code? > > atanl(1) Er, arc tan of 1 is pi/4. Try atanl(1)*4, or for a less wasteful instruction try using the constant M_PI Also, forgive me if I'm wrong, but this looks like a homework question. Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimdwxhPXQg2_xr7hGrRjBBURt%2B6dxELBvo7=1Eh>