Custom TCL Math Library