Merges calc_funcs and eval_funcs

Also adds Simpson’s rules as new math functions.