Interactive CLI arbitrary-precision calculator
Calc is an interactive calculator which provides for easy large numeric calculations, but which also can be easily programmed for difficult or long calculations. It can accept a command line argument, in which case it executes that single command and exits. Otherwise, it enters interactive mode. There are a great number of pre-defined functions. The calculator can calculate transcendental functions, and accept and display numbers in real or exponential format. The calculator also knows about complex numbers. There is a "tiny" flavor (pkg install calc-tiny) that excludes both the help files and loadable modules. It provides a basic calculator (still with MANY built-in functions) in under 20K (on amb64). Note that the tiny flavor installs a static executable only, so libcalc.so is not available (as of the time of writing, no other ports use it).
pkg install calc-tiny