From owner-freebsd-questions@FreeBSD.ORG Fri Nov 5 18:30:37 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E165106567A for ; Fri, 5 Nov 2010 18:30:37 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm1.ukr.net (fsm1.ukr.net [195.214.192.23]) by mx1.freebsd.org (Postfix) with ESMTP id EB6D58FC1A for ; Fri, 5 Nov 2010 18:30:36 +0000 (UTC) Received: from 39-6-179-94.pool.ukrtel.net ([94.179.6.39] helo=localhost) by fsm1.ukr.net with esmtps ID 1PER3a-0003PA-7c ; Fri, 05 Nov 2010 20:30:34 +0200 Date: Fri, 5 Nov 2010 20:30:31 +0200 From: Ivan Klymenko To: Alejandro Imass Message-ID: <20101105203031.15062bee@ukr.net> In-Reply-To: References: X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/6JTNHJxRUAWpvLj6c5rLj=N" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Arthur Bela , Remko Lodder , FreeBSD Mailing list Subject: Re: how to generate pi in c X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2010 18:30:37 -0000 --MP_/6JTNHJxRUAWpvLj6c5rLj=N Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =D0=92 Fri, 5 Nov 2010 13:39:05 -0400 Alejandro Imass =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > This is how I do it in perl > use constant PI =3D> 4 * atan2(1, 1); >=20 > In C it owuld probably be (using math.h): >=20 > pi =3D 4.0*atan(1.0); >=20 > On Fri, Nov 5, 2010 at 1:15 PM, Remko Lodder > 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 :\ > >> > > > > -- > > /"\ =C2=A0 Best regards, =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| remko@FreeBSD.org > > \ / =C2=A0 Remko Lodder =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| > > X =C2=A0 =C2=A0http://www.evilcoder.org/ =C2=A0 =C2=A0| Quis custodiet = ipsos custodes > > / \ =C2=A0 ASCII Ribbon Campaign =C2=A0 =C2=A0| Against HTML Mail and N= ews > > > > > > > > > > _______________________________________________ > > 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" >=20 >=20 adapt the code to build on FreeBSD... --MP_/6JTNHJxRUAWpvLj6c5rLj=N--