summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md9
-rw-r--r--README/sample.mp4bin0 -> 5747008 bytes
-rwxr-xr-xbuild.sh2
3 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index 023fb4a..7bd4f98 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,16 @@
-# CLI-pi
+<h1 align = center> CLI-π </h1>
+
**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.
+<div align = center>
+ <video width="640" height="384">
+ <source src="README/sample.mp4" type="video/mp4">
+ </video>
+</div>
+
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
--- /dev/null
+++ b/README/sample.mp4
Binary files 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