Write a user-defined function with function call val-evalf (f, a, b) wheref is an inline function, and a and b are constants such that a < b. The function calculates the midpoint m of the interval [a,b] and returns 3. the value of f(a)+f(m)+f(b). Execute the function for f(x) e cos 2x, a -1, b-3.