Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. #52 20130812 01:21:00
Re: π
Code:>>> def pi(n): s = Decimal() for i in xrange(0,n+1): s += ((1**i)*((Decimal(1)/Decimal(5))**(2*i+1)))/((2*i)+1) s *= 16 for i in xrange(0,n+1): s = 4*(((1**i)*((Decimal(1)/Decimal(239))**(2*i+1)))/((2*i)+1)) print s >>> pi(10) 3.226984365524281777452846574 What is wrong? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #53 20130812 01:29:27
Re: πHi; Code:>>> def pi(n): s = Decimal() for i in xrange(0,n+1): s += ((1**i)*((Decimal(1)/Decimal(5))**(2*i+1)))/((2*i)+1) s *= 16 Please run that and post the answer. Then run the second piece and post that answer. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #54 20130812 01:48:22
Re: πCode:>>> def pi(n): s = Decimal() for i in xrange(0,n+1): s += ((1**i)*((Decimal(1)/Decimal(5))**(2*i+1)))/((2*i)+1) s *= 16 print s >>> pi(10) 3.243720864865314995238473720 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #56 20130812 01:57:01
Re: πCode:>>> def pi(n): s = Decimal() for i in xrange(0,n+1): s += (((1)**i)*((Decimal(1)/Decimal(5))**(2*i+1)))/((2*i)+1) s *= 16 for i in xrange(0,n+1): s = 4*((((1)**i)*((Decimal(1)/Decimal(239))**(2*i+1)))/((2*i)+1)) print s >>> pi(10) 3.141592653589793294747374859 >>> pi(100) 3.141592653589793238462643384 I'm so stupid. 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #57 20130812 01:59:41
Re: πHi; In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #58 20130812 02:03:05
Re: πYup 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #59 20130812 02:07:57
Re: πCode:>>> getcontext().prec = 100 >>> pi(100) 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117064 >>> pi(10000) 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117064 So, already a lot 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #60 20130812 02:08:35
Re: πThat particular formula was used when Shanks calculated pi to 707 places without an electronic computer. He used a human one. But there was a mistake on the 527 digits so all the rest from there on are wrong. Still, it was a record that lasted until modern times and electronic computers. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #61 20130812 02:16:48
Re: πDid he use himself? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #62 20130812 02:24:47
Re: πA guy called Dase was used. He was an idiot savant capable of multiplying two 100 digit numbers in his head in 5 or 6 hours. He did all the computation. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #63 20130812 02:36:21
Re: πisn't 5 or 6 hours a lot? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #64 20130812 02:41:43
Re: πYes, but it is a mistake. Shanks did the calculation in 1873 and Dase was dead by 1861 so he must have used someone else that was similar. Also, it took Dase 8 hours to multiply two 100 digit numbers. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #65 20130812 02:42:59
Re: πHow were such guys found/developed? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #67 20130812 02:49:48
Re: πDo we really need that ability? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #69 20130812 02:55:35
Re: πWhy should they try to hide it? Who are they, by the way? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #70 20130812 03:00:08
Re: πThe same that we discussed in the PM, among others. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #71 20130812 03:06:10
Re: πWho are special then? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #72 20130812 03:08:23
Re: πComputation is a very important part of math. A point I have been trying to make since I got here. It represents a new way of thinking about things.
That is the end result of what I have been saying. Nothing could be further from the truth. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #73 20130812 11:57:30
Re: πWhich people are special then? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda #74 20130812 13:14:10
Re: πThey are about things that I do not wish the entire internet to see. In mathematics, you don't understand things. You just get used to them. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #75 20130812 13:22:02
Re: πYes, but what is special, then? 'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.' 'God exists because Mathematics is consistent, and the devil exists because we cannot prove it' 'Who are you to judge everything?' Alokananda 