Arithmetic operations on functions