I'd like to compute the area inside of a curve defined by two vectors a
and b
. For your reference the curve looks something like this (pyplot.plot(a,b)
):
I saw matplotlib has a fill functionality that let you fill the area enclosed by the curve:
I'm wondering, there's any way to obtain the area filled using that same function? It would be very useful as the other way I'm thinking of computing that area is through numerical integration, much more cumbersome.
Thank you for your time.