Integrate function definition