Formula for the new generation of calc (version  3.1)

In parallel with old generation of calc-2.12.x ( http://www.isthe.com/chongo/tech/comp/calc/ ), there is available source for new generation (calc-3.1) with rewritten code-base and increased functionality, which can be found on the site of original developer of calc (http://members.tip.net.au/~dbell/ )

This is formula for this version, which includes few patches.