Calc is arbitrary precision C-like arithmetic system that is
a calculator, an algorithm prototyper, and mathematical
research tool.

Calc comes with a rich set of builtin mathematical and
programmatic functions.

See /usr/share/calc for resources and examples.