bikeman564™ Posted March 16 Share #1 Posted March 16 While riding today we stopped at a bakery called Sister Pie. They have pi on their chalk board😁 1 1 1 Link to comment Share on other sites More sharing options...
Ralphie ★ Posted March 16 Share #2 Posted March 16 Did you check it for accuracy? Link to comment Share on other sites More sharing options...
Ralphie ★ Posted March 16 Share #3 Posted March 16 I can vouch for the first 11 digits. 1 1 Link to comment Share on other sites More sharing options...
bikeman564™ Posted March 16 Author Share #4 Posted March 16 3 minutes ago, Ralphie said: Did you check it for accuracy? I did not Link to comment Share on other sites More sharing options...
shootingstar Posted March 16 Share #5 Posted March 16 Sometimes when I read stuff like this, I just wonder how much the parent is encouraging this or how much is child naturally getting a happy buzz doing it themselves on their own without anyway telling them: B.C. boy, 9, loves hockey, his rabbit and pi, which he has memorized to 2,030 digits - The Globe and Mail 1 Link to comment Share on other sites More sharing options...
maddmaxx ★ Posted March 16 Share #6 Posted March 16 I know that pi r'nt square. 2 Link to comment Share on other sites More sharing options...
Longjohn ★ Posted March 17 Share #7 Posted March 17 Wife and I had dinner tonight at eat and park. They had lots of good looking pie in the glass case. We resisted. 1 1 Link to comment Share on other sites More sharing options...
Further Posted March 17 Share #8 Posted March 17 I guesstimate the diameter of the spool, count the wraps and multiply by 3 Mostly close enough 1 2 Link to comment Share on other sites More sharing options...
Ralphie ★ Posted March 17 Share #9 Posted March 17 6 hours ago, Further said: I guesstimate the diameter of the spool, count the wraps and multiply by 3 Mostly close enough Gives you a nice little safety factor. 1 Link to comment Share on other sites More sharing options...
Mr. Silly Posted March 17 Share #10 Posted March 17 In high school, 1980'ish, a guy in my programming class calculated pi to the most digits I have ever seen in real life. I have no idea the number of digits but it was a wall of numbers that completely filled a sheet of green bar paper used with our teletype console. 1 Link to comment Share on other sites More sharing options...
Kzoo Posted March 17 Share #11 Posted March 17 Dr Mickn would scold you. Accurate vs. precise? 2 Link to comment Share on other sites More sharing options...
Ralphie ★ Posted March 17 Share #12 Posted March 17 4 hours ago, Mr. Silly said: In high school, 1980'ish, a guy in my programming class calculated pi to the most digits I have ever seen in real life. I have no idea the number of digits but it was a wall of numbers that completely filled a sheet of green bar paper used with our teletype console. I was just wondering how you calculate pi. Hmm, looks like the reader’s digest version is Archimedes got very close by comparing 96 sided polygons that fit inside and ootside a circle so that gave upper and lower limits on it. Then infinite series came later, and I did not happen upon a similarly understandable explanation of how they work. Link to comment Share on other sites More sharing options...
Razors Edge ★ Posted March 17 Share #13 Posted March 17 18 hours ago, Ralphie said: Did you check it for accuracy? Would it matter? Past 3.14 (and I know to 3.1415!) is about useless in all but a tiny amount of uses. Link to comment Share on other sites More sharing options...
Kzoo Posted March 17 Share #14 Posted March 17 35 minutes ago, Razors Edge said: Would it matter? Past 3.14 (and I know to 3.1415!) is about useless in all but a tiny amount of uses. Back in my mechanical design days it was 3.1416. Have to round the 5 up. Link to comment Share on other sites More sharing options...
Mr. Silly Posted March 17 Share #15 Posted March 17 1 hour ago, Ralphie said: I was just wondering how you calculate pi. Hmm, looks like the reader’s digest version is Archimedes got very close by comparing 96 sided polygons that fit inside and ootside a circle so that gave upper and lower limits on it. Then infinite series came later, and I did not happen upon a similarly understandable explanation of how they work. It is something like: 4/1 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 (...) 1 1 Link to comment Share on other sites More sharing options...
bikeman564™ Posted March 17 Author Share #16 Posted March 17 47 minutes ago, Mr. Silly said: It is something like: 4/1 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 (...) and so on, and so, and so on 2 Link to comment Share on other sites More sharing options...
bikeman564™ Posted March 17 Author Share #17 Posted March 17 1 hour ago, Razors Edge said: Would it matter? Past 3.14 (and I know to 3.1415!) is about useless in all but a tiny amount of uses. not for things I do, my calculator IIRC is 10 digits. In Excel, I use =Pi() Link to comment Share on other sites More sharing options...
bikeman564™ Posted March 17 Author Share #18 Posted March 17 1 hour ago, Kzoo said: Back in my mechanical design days it was 3.1416. Have to round the 5 up. In school, we were told to use 3.1415 (or 6) can't remember. But this way everyone would get the same answer if correct. Despite calculators having a Pi function. When I'm at the store buying tape for my wheels, I use 3 so I can do it in my head Link to comment Share on other sites More sharing options...
Razors Edge ★ Posted March 17 Share #19 Posted March 17 1 hour ago, Kzoo said: Back in my mechanical design days it was 3.1416. Have to round the 5 up. 3.14. Forget the rest! Jeebus man. 1 Link to comment Share on other sites More sharing options...
MickinMD ★ Posted March 18 Share #20 Posted March 18 My nephew, now the flight attendant, won tickets to an AA Minor League Bowie Baysox game for reciting pi to something like 17 decimal places when he was in elementary school. The modern minor league stadiums have playgrounds for kids, picnic tables for adults McDonald's-size prices for concessions and cheap tickets. Taking a few kids to see the nearby, major league Orioles or Nationals is a financial adventure. 1 Link to comment Share on other sites More sharing options...
Kzoo Posted March 18 Share #21 Posted March 18 19 hours ago, Razors Edge said: 3.14. Forget the rest! Jeebus man. When you're working on a tool that is machined to ten thousands of an inch you need 4 significant digits. Jeebus man, everyone knows that. Link to comment Share on other sites More sharing options...
Razors Edge ★ Posted March 18 Share #22 Posted March 18 1 minute ago, Kzoo said: When you're working on a tool that is machined to ten thousands of an inch you need 4 significant digits. Jeebus man, everyone knows that. Darn it! You're a tiny tool? I thought you were a huge tool, but I'm known to be wrong quite often. Link to comment Share on other sites More sharing options...
Bikeguy Posted March 19 Share #23 Posted March 19 On 3/17/2024 at 11:55 AM, Mr. Silly said: It is something like: 4/1 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 (...) Yes but that will take 500,000 iterations to be accurate to 5 decimal places. https://www.wikihow.com/Calculate-Pi On 3/17/2024 at 12:44 PM, bikeman564™ said: not for things I do, my calculator IIRC is 10 digits. In Excel, I use =Pi() Yeah... I just use the π key on my calculator. and the Excel PI(). 1 Link to comment Share on other sites More sharing options...
Bikeguy Posted March 19 Share #24 Posted March 19 On 3/17/2024 at 11:55 AM, Mr. Silly said: It is something like: 4/1 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 (...) I was curious (and bored watching a movie with WoBG) so I used the Gregory-Leibniz series and wrote an Excel macro to calculate π. The macro uses 500,000 iterations and the answer is indeed close. I've exceeded my useless drivel quota for the day. 3 Link to comment Share on other sites More sharing options...
Mr. Silly Posted March 19 Share #25 Posted March 19 I plagiarized a good chunk of this from Stack Overflow if you want to calculate PI to an arbitrary number of digits using C#.: using System ; namespace SillyMath { class Program { public static string CalculatePi(int digits) { digits++; uint[] x = new uint[digits*10/3+2]; uint[] r = new uint[digits*10/3+2]; uint[] pi = new uint[digits]; for (int j = 0; j < x.Length; j++) x[j] = 20; for (int i = 0; i < digits; i++) { uint carry = 0; for (int j = 0; j < x.Length; j++) { uint num = (uint)(x.Length - j - 1); uint dem = num * 2 + 1; x[j] += carry; uint q = x[j] / dem; r[j] = x[j] % dem; carry = q * num; } pi[i] = (x[x.Length-1] / 10); r[x.Length - 1] = x[x.Length - 1] % 10; ; for (int j = 0; j < x.Length; j++) x[j] = r[j] * 10; } var result = ""; uint c = 0; for(int i = pi.Length - 1; i >=0; i--) { pi[i] += c; c = pi[i] / 10; result = (pi[i] % 10).ToString() + result; } return result; } static void Main(String[] args) { int numDigits = 132 ; string result = CalculatePi(numDigits) ; result = result.Insert(1, ".") ; Console.WriteLine(result) ; } } } PS C:\Users\MrSilly\Documents\Dev\CPP\CalcPI\CalcPI> dotnet run 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550 3 Link to comment Share on other sites More sharing options...
bikeman564™ Posted March 19 Author Share #26 Posted March 19 8 hours ago, Bikeguy said: I was curious (and bored watching a movie with WoBG) so I used the Gregory-Leibniz series and wrote an Excel macro to calculate π. The macro uses 500,000 iterations and the answer is indeed close. I've exceeded my useless drivel quota for the day. I started to do this on Excel also but w/o the macro. I figured it was going to be a lot Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now