From 5962501134445692462
X-Google-Thread: f78e5,4ba9dcb1ae436e16,start
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.alt.net!comp-std-cpp-robomod!not-for-mail
From: "Steven T. Hatton" <hattons@globalsymmetry.com>
Newsgroups: comp.std.c++
Subject: Pi, Euler Number, and perhaps other 'natural' constants?
Date: 26 Jul 2004 16:10:07 GMT
Organization: Asii
Lines: 22
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <5cydnSisJNo4yJncRVn-sQ@speakeasy.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: serv1.gc.dca.giganews.com: news set sender to poster@giganews.com using -f
NNTP-Posting-Date: Sun, 25 Jul 2004 19:51:48 -0500
User-Agent: KNode/0.7.7
X-Trace: sv3-kMV53PnnFqdkCw/x1oTGTfWNKank0nH9HizsaVQ1m6W48XY4eLN40hDYGe6MB08qPZ2+kDhosEnXPed!EyfuU6IpfDH+UXmmsbqjBr+tgIkNVgt7kU9MDH6QjAzd6OQhshhhqd9lzHdZ4rs9lhtgrqY5SRmd!AReo+AttAcyZjrHHcGc=
X-Complaints-To: abuse@speakeasy.net
X-DMCA-Complaints-To: abuse@speakeasy.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.1
X-Spamscanner: mailbox8.ucsd.edu  (v1.4 May 20 2004 13:55:33, 0.0/5.0 2.63)
X-MailScanner: PASSED (v1.2.8 53448 i6Q0ptCO059304 mailbox8.ucsd.edu)
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=5.2 tests=AWL,BAYES_00 autolearn=ham 
	version=2.60-mulga_r1
Xref: g2news1.google.com comp.std.c++:1445

I was a bit surprised that the Standard does not specify that the constant
Pi be part of an implementation. It seems like an obvious feature to want
in a programming language. The Euler Number would also be nice, but not
nearly as desirable as Pi.  Sure there are questions of how to handle the
difference between a float and a double Pi, but I'm (almost) sure that
isn't a big obstacle.

I've found ways to jump though hoops to get Pi defined by using
transcendental functions provided in the Standard Library, but that seems a
bit convoluted to me.  Is there a reason Pi is missing from C++?
-- 
STH
http://www.kdevelop.org
http://www.suse.com
http://www.mozilla.org

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



