function of variables like in Mathcad - what type