OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /usr/share/systemd/../doc/libbrotli1/../apport/../gawk/examples/prog/ |
Home | ☍ Command | ☍ Upload File | ☍Info Server | ☍ Buat File | ☍ Mass deface | ☍ Jumping | ☍ Config | ☍ Symlink | ☍ About |
---|
# pi.awk --- compute the digits of pi # # Katie Wasserman, katie@wass.net # August 2014 BEGIN { digits = 100000 two = 2 * 10 ^ digits pi = two for (m = digits * 4; m > 0; --m) { d = m * 2 + 1 x = pi * m intdiv0(x, d, result) pi = result["quotient"] pi = pi + two } print pi }