π in F#

I think I'm pretty much doing pi approximations in every language now, so, here it is in F#!

The interesting thing about F# is that, while a functional language, it is actually quite like R which is not functional.

I still have the same issue with NASM and am working on that one side-by-side with the other languages. If you can help fix the issue, please let me know at https://repl.it/talk/ask/NASM-Print-Floating-Point/41105.

Credit to @NoelBryan, @TheForArkLD , @Warhawk947 , and @LizFoster for inspiring these approximations. Most of these use the Nilakantha Series, although I also use the arctangent method (multiplying the radian arctangent of 1 by 4 to get pi and getting the arctangent with an infinite series) in three of them (Python, Node, and C).

Also, credit to @Jakman for suggesting F#!

Next up is Crystal and then L ( @theangryepicbanana 's language). (I'm still working on NASM, but can't really tell when I'll be able to get that one done.) If you have any suggestions for after those, please let me know!

You are viewing a single comment. View All