Talk:Almkvist-Giullera formula for pi: Difference between revisions

From Rosetta Code
Content added Content deleted
(Added talk page)
 
mNo edit summary
Line 1: Line 1:
===Julia answer for Pi is wrong===
===Julia answer for Pi is wrong===
After spending several minutes trying to figure out why my Wren entry was disagreeing with Julia, it turned out that the latter is wrong - Python, REXX and an independent source all agree on this - though, looking at the code, I couldn't see anything obviously wrong. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 10:56, 12 October 2020 (UTC)
After spending several minutes trying to figure out why my Wren entry was disagreeing with Julia, it turned out that the latter is wrong - Python, REXX and an independent source all agree on this - though, looking at the code, I couldn't see anything obviously wrong. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 10:56, 12 October 2020 (UTC)

Ah, it turns out setprecision() takes an argument in significant bits, not decimal digits! Thanks for the comment, fixed. --[[User:Wherrera|Wherrera]] ([[User talk:Wherrera|talk]]) 19:08, 12 October 2020 (UTC)

Revision as of 19:08, 12 October 2020

Julia answer for Pi is wrong

After spending several minutes trying to figure out why my Wren entry was disagreeing with Julia, it turned out that the latter is wrong - Python, REXX and an independent source all agree on this - though, looking at the code, I couldn't see anything obviously wrong. --PureFox (talk) 10:56, 12 October 2020 (UTC)

Ah, it turns out setprecision() takes an argument in significant bits, not decimal digits! Thanks for the comment, fixed. --Wherrera (talk) 19:08, 12 October 2020 (UTC)