$ 0 0 Sorry - Ceil etc are built-in functions in Mathcad:See also http://twt.mpei.ac.ru/MCS/Worksheets/FMC/C-eil.xmcd