##### π in Scheme

I think I'm pretty much doing pi approximations in every language now, so, here it is in Scheme, a dialect of Lisp!

The issue with NASM has been fixed, but I still need to figure out float addition, subtraction, multiplication, and division before the NASM approximation will be ready.

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).

Next up is Clojure and then Emacs Lisp (Elisp). If you have any suggestions for after those, please let me know! I would prefer to save esolangs for last. Some examples for ideas for the next ones are like Quil, OCaml, Tcl, etc.

By the way, I'm starting to run out of languages, so please suggest any you would like to see me do. After Elisp, there will be no official languages left other than esolangs, but there are some other languages (like OCaml, Quil, etc.) that can be found using the method in my tutorial at https://repl.it/talk/learn/How-to-Get-a-List-of-All-Replit-Langauges/34411. Though, I am saving esolangs for last (or close to last). After I finish the approximations using the Nilakantha Series, I will go through all of the languages again and do another algorithm (I'm thinking either trapezoidal sums or Monte Carlo). I will also then make a tutorial on transpiling programming languages.

You are viewing a single comment. View All