Get some functions to calc_func.cpp