Help with Error in Function?

I have a function written to calculate an integral using rectangles. I get this error: 'cannot convert double to double (*) (double) in assignment'.
But whenever I remove one of the doubles something is undeclared. Can anyone tell me what I need to fix?