specialfuncs added, lower precision equilibrium calc