I will only write about the best solution I found for my needs. In the question, you can find several solutions and probably you will find a different solution that will be best for you.
Calc is an arbitrary precision arithmetic system that uses a C-like language. Calc is useful as a calculator, an algorithm prototyper and as a mathematical research tool. More importantly, calc provides one with a machine independent means of computation. Calc comes with a rich set of builtin mathematical and programmatic functions.
If you want to install calc you can use the following command: