Arithmetic operations with functions