0

I am completely unaware of

enter image description here

How to find the area under the curve using Python. The attached figure shows what I am looking for. I need to plot the graph, which has more than 6000 points, and then need to measure the area in the RED and GREEN regions. Can anyone help with this matter?

toyota Supra
  • 3,181
  • 4
  • 15
  • 19
  • Here's a start. Find all alrea. Find green. Then red = all - green. Do you know the trapezoid rule? Also, I would think you could do it entirely in Excel (at least the area part), but I guess that's not the task. – Jeremy Kahan Aug 19 '22 at 08:20

1 Answers1

0

As Jeremy said, you can use the trapezoid rule. Numpy has a function for that. Here is a little example from an other question: Calculating the area under a curve given a set of coordinates, without knowing the function

Oivalf
  • 154
  • 7