added src/calc.h