I have in a list of points two different curves (y1, y2) and I want to find the area between the curves when:
- y1 > y2
- y1 < y2
I have found this post, but it only calculates the sum of both areas.
If we plot what I want, I want separately the blue area and the red area.