Calculates the multiplication of two functions.