From owner-freebsd-questions@FreeBSD.ORG Fri Nov 5 18:02:31 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 4E5D0106566B for ; Fri, 5 Nov 2010 18:02:31 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id E05F18FC18 for ; Fri, 5 Nov 2010 18:02:30 +0000 (UTC) Received: by wwb17 with SMTP id 17so3294877wwb.31 for ; Fri, 05 Nov 2010 11:02:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.153.21 with SMTP id i21mr2355476wbw.26.1288978745855; Fri, 05 Nov 2010 10:39:05 -0700 (PDT) Sender: aimass@yabarana.com Received: by 10.227.145.133 with HTTP; Fri, 5 Nov 2010 10:39:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Nov 2010 13:39:05 -0400 X-Google-Sender-Auth: OEZJAO7ddFFCHMJCNTF4zmdVoVQ Message-ID: From: Alejandro Imass To: Remko Lodder Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Arthur Bela , 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:02:31 -0000 This is how I do it in perl use constant PI =3D> 4 * atan2(1, 1); In C it owuld probably be (using math.h): pi =3D 4.0*atan(1.0); 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 :\ >> > > -- > /"\ =A0 Best regards, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| re= mko@FreeBSD.org > \ / =A0 Remko Lodder =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| > X =A0 =A0http://www.evilcoder.org/ =A0 =A0| Quis custodiet ipsos custodes > / \ =A0 ASCII Ribbon Campaign =A0 =A0| 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.o= rg" >