Compute the line integral of the scalar function
over the curve for