Definite Integral Matlab
问题 I'm working on a project in Matlab and need to find the area between two lines (intersecting in a point (xIntersection,yIntersection) in the interval [-1,+1]. So the idea is to subtract the two lines and integrate between [-1, xIntersection] and [xIntersection, +1], sum the results and if it's negative, change its sign. For details on how I find the intersection of the two lines check this link. I'm using Matlab's function int(), here a snippet of my code: xIntersection = ((x_1 * y_2 - y_1 *