Date: Fri, 5 Nov 2010 20:30:31 +0200 From: Ivan Klymenko <fidaj@ukr.net> To: Alejandro Imass <ait@p2ee.org> Cc: Arthur Bela <jozsi.avadkan@gmail.com>, Remko Lodder <remko@elvandar.org>, FreeBSD Mailing list <freebsd-questions@freebsd.org> Subject: Re: how to generate pi in c Message-ID: <20101105203031.15062bee@ukr.net> In-Reply-To: <AANLkTik62acvRKx71sQ%2Bwqd%2BKb=auqb_NQkxT9F6y-Yr@mail.gmail.com> References: <AANLkTikaBYi0d4dvLnc=vxuPDWQHDqrVJrz=iVkECeO=@mail.gmail.com> <AFAF0F44-48A3-462A-8EA5-005E838AE44E@elvandar.org> <AANLkTik62acvRKx71sQ%2Bwqd%2BKb=auqb_NQkxT9F6y-Yr@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
В Fri, 5 Nov 2010 13:39:05 -0400 Alejandro Imass <ait@p2ee.org> пишет: > This is how I do it in perl > use constant PI => 4 * atan2(1, 1); > > In C it owuld probably be (using math.h): > > pi = 4.0*atan(1.0); > > On Fri, Nov 5, 2010 at 1:15 PM, Remko Lodder <remko@elvandar.org> > wrote: > > > > No, but a simple search reveals some information; > > > > http://einstein.drexel.edu/courses/Comp_Phys/General/C_basics/ > > > > On Nov 5, 2010, at 5:40 PM, Arthur Bela wrote: > > > >> Does anyone has a "generate-pi.c" source code? > >> > >> Thanks.. :D :\ > >> > > > > -- > > /"\ Best regards, | remko@FreeBSD.org > > \ / Remko Lodder | > > X http://www.evilcoder.org/ | Quis custodiet ipsos custodes > > / \ ASCII Ribbon Campaign | Against HTML Mail and News > > > > > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > adapt the code to build on FreeBSD...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101105203031.15062bee>
