A simple terminal application that uses artificial intelligence to solve mathematical equations. It is based on Ollama, which you need to have installed to run the LLM locally.
Inspired by this project I found on Hacker News a while back.
$ ollama serve &
$ ./AIculator 2 + 2 / 2 | cowsay
____________________
< 1.5707963267948966 >
--------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
$ ./AIculator 2 + 2 / 2 | cowsay
___
< 2 >
---
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
Time measured using GNU AWK's time utility
echo "$((20+5))" | AIculator 20 + 5 |
---|---|
0m0.000s | 0m11.041s |