// Program for Pi computation using Leibniz series // Author: xamidev // Licensed under the Unlicense. See the repo below. // https://github.com/xamidev/blankos #include "../libc/stdio.h" #include "../libc/string.h" void program_pi(int argc, char* argv[]) { if (argc < 2) { printf("Usage: %s \n", argv[0]); return; } double pi = 0.0; int terms = atoi(argv[1]); for (int i=0; i