Dunno what it is like now, but arctan(1) was a risky choice on some old machines as the series convergence was at its worst for that argument value and the tradeoff between accuracy and speed could cause trouble. You were at the mercy of the trig library if you did it this way.
Wikipedia is often a great starting point for these sorts of things. It typically has enough information to give you some hints - but not so much that you can't have fun finding out more:
At university I remember a project that involved calculating all the digits of pi. It was written using a functional programming language (similar to Haskell) - the result was an unending list of the digits of pi. But since the language used lazy evaluation, it didn't bother calculating the entries until you tried to print them out. I used polynomial expansions of arctan() to do the sums.
--
Failure does not prove something is impossible, failure simply
indicates you are not using the right tools...
nico@nctdevpuntnl (punt=.)
--------------------------------------------------------------
Are you thinking of the Indiana State legislature with their 1897 legal attempt to define Pi with a Bill inspired by some very dodgy maths.
AFAIK 3 was one of the very few values it did not "define" pi to be. See for example the original article by Greenblat in SciAM 1965, p427 or the reproduction in More Random Walks in Science (p126)
The least bad bit defined pi = sqrt(10) exactly and elsewhere as 3.2
formatting link
The worst implicit claim in the bill had pi = 4 (exactly) Says a lot about education in Indiana.
There is a spoof version about that blames Alabama.
Most imperial units are defined in terms of the metric units these days. Originally they were only rough definitions (I believe an inch was variously defined as the length from a thumb joint to the end of the thumb, or alternatively as the length of three grains of barley). Then they were a bit more standardised (such as the length of a particular metal rod). But now they use specific metric definitions - so an inch is precisely 25.4 mm - and will stay that way even if the definition of a millimetre varies!
That is standard fare in continued fractions. Everybody interested in these kind of approximations should take a look at this fascinating subject.
It depends. Pi has been calculated to billions of decimals. Simple floating point doesn't get you there.
Groetjes Albert
--
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.