Calculates the division of two functions