From 9a9666c83eaf4822c49b08f14ccbc7c9b0575b6f Mon Sep 17 00:00:00 2001 From: Namilskyy Date: Sat, 13 Sep 2025 21:39:42 +0300 Subject: Updated README, added video example --- README.md | 9 ++++++++- README/sample.mp4 | Bin 0 -> 5747008 bytes build.sh | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 README/sample.mp4 diff --git a/README.md b/README.md index 023fb4a..7bd4f98 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,16 @@ -# CLI-pi +

CLI-π

+ **tpi - C-written, MPFR-based CLI program for calculating pi** > [!WARNING] > For the accuracy of calculations, a large MPFR library is used, there may be delays and high processor loads on weak systems. +
+ +
+ The program calculates the pi number with high accuracy. In infinite mode, something like AOT compilation is used, first ~10 million decimal places are calculated, and then they are converted to `char[]` through the same MPFR. diff --git a/README/sample.mp4 b/README/sample.mp4 new file mode 100644 index 0000000..f290eb2 Binary files /dev/null and b/README/sample.mp4 differ diff --git a/build.sh b/build.sh index 093eefd..93ba5cf 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,3 @@ #!/bin/sh -gcc -v -Wall -Wextra -Werror -lm -lmpfr -lgmp -I/usr/local/include -L/usr/local/lib src/main.c -o tpi-v2 +gcc -v -Wall -Wextra -Werror -lm -lmpfr -lgmp -I/usr/include -L/usr/lib src/main.c -o tpi-v2 -m32 -- cgit v1.2.3