Talk:Pi: Difference between revisions

2,059 bytes added ,  2 years ago
→‎Python: new section
(added a section name to first discussion to make the TOC appear in the right place.)
(→‎Python: new section)
 
(10 intermediate revisions by 3 users not shown)
Line 73:
== C# - incorrect solution ==
The C# version produces output where only first 30% is correct, then goes garbage. For example, here's what it outputs when asked for 50 digits:
3141592653589792800649014751202138549699509907712322 while correct digits are
3141592653589793238462643383279502884197169399375105.
while correct digits are
3141592653589793238462643383279502884197169399375105.
The D version which uses similar but slightly different algorithm is correct.
--[[User:thedeemon|thedeemon]] 24 October 2012
 
 
: I split the two above values of &nbsp; <big><big><math>\pi</math></big></big> &nbsp; (sans a decimal point) &nbsp; so that it can be easily compared, and I also added an up arrow &nbsp; (↑) &nbsp; indicating to the unequal (different) decimal digit. &nbsp; I realize that (normally) editing other people's edits are frowned on and considered a no-no, &nbsp; but the intent is to easily compare two different values of &nbsp; <big><big><math>\pi</math></big></big>. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 09:45, 24 September 2018 (UTC)
 
== Pi vs tau ==
Line 100 ⟶ 103:
 
I'm not sure there's necessarily anything wrong with the code, so I didn't want to mark it incorrect, but the output for the Julia sample is clearly wrong - there are several places in the sequence where the character 'e' appears. Is there a more appropriate template that can be used to mark it as needing attention. I'm not a Julia programmer myself, so it's not something I can easily confirm as correct or incorrect. --[[User:J4 james|j4_james]] ([[User talk:J4 james|talk]]) 16:47, 3 October 2015 (UTC)
 
 
== Formula for JAVA ==
By what formula did you calculate pi in JAVA? I searched hard in wikipedia, and found nothing this good. What formula do you use?
 
Also - the first 50 digits are exact - but is the whole formula exact? Or is it diverges after some digits? [[User:DeatH StaR|DeatH StaR]] ([[User talk:DeatH StaR|talk]]) 20:55, 13 October 2016 (UTC)
 
== pascal ==
when i compile i get: Error: Identifier not found "result"
 
=== different output ===
i solved the above problem by adding oneloop:=result before the end of the function but:
when i run the program to calculate thousand digits of pi i get an output with the last digits 62429841642 which is completely different from the output published at the wiki page.
 
== my password ==
My password is the last 8 digits of &nbsp; <big><big><math>\pi</math></big></big>. &nbsp; &nbsp; &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 13:29, 29 November 2019 (UTC)
 
 
=== Happy Pi Day! ===
--[[User:Xdv|xarilaos]] ([[User talk:Xdv|talk]]) 14:31, 14 March 2022 (UTC)
 
== javascript ==
 
webpage version is working!
(Note for javascript developers: please provide webpage versions, we are not professionals.)
 
== Java ==
 
It works!--[[User:Xdv|xarilaos]] ([[User talk:Xdv|talk]]) 14:04, 15 March 2022 (UTC)
 
== Python ==
 
It works!--[[User:Xdv|xarilaos]] ([[User talk:Xdv|talk]]) 14:06, 15 March 2022 (UTC)
Anonymous user