Talk:Pi: Difference between revisions
Content added Content deleted
mNo edit summary |
m (→C# - incorrect solution: I split the two expressions of two different pi calculations. I realize that (normally) editing other people's edits are frowned on, but the intent is to compare 2 different values of pi.) |
||
Line 73: | Line 73: | ||
== C# - incorrect solution == |
== 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: |
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 |
3141592653589792800649014751202138549699509907712322 while correct digits are |
||
⚫ | |||
while correct digits are |
|||
↑ |
|||
⚫ | |||
The D version which uses similar but slightly different algorithm is correct. |
The D version which uses similar but slightly different algorithm is correct. |
||
--[[User:thedeemon|thedeemon]] 24 October 2012 |
--[[User:thedeemon|thedeemon]] 24 October 2012 |
||
: I split the two above values of <big><big><math>\pi</math></big></big> (sans a decimal point) so that it can be easily compared, and I also added an up arrow (↑) indicating to the unequal (different) decimal digit. I realize that (normally) editing other people's edits are frowned on and considered a no-no, but the intent is to easily compare two different values of <big><big><math>\pi</math></big></big>. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 09:45, 24 September 2018 (UTC) |
|||
== Pi vs tau == |
== Pi vs tau == |