Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • $\begingroup$ Is there a way to achieve this without plotting? I guess that will be slow, and I need to compute areas on a lot of large lists. Thanks for your answer. $\endgroup$ Commented Feb 3, 2020 at 23:53
  • $\begingroup$ @JoséD. you can use Interpolation to get two functions and use NIntegrate . $\endgroup$ Commented Feb 3, 2020 at 23:59
  • $\begingroup$ Performance is really important for my usecase, and I feel like there has to be more efficient alternatives (the shapes are just triangles). Anyway thank you so much for your answer, I am accepting it for now. $\endgroup$ Commented Feb 4, 2020 at 0:17
  • 1
    $\begingroup$ A slightly simpler form works: {if1, if2} = Interpolation[#, InterpolationOrder -> 1] & /@ lists $\endgroup$ Commented Feb 4, 2020 at 4:50
  • 1
    $\begingroup$ @Fraccalo, I did try that; did not help much. However, usingMethod -> {Automatic, "SymbolicProcessing" ->False} did improve timing considerably. $\endgroup$ Commented Feb 5, 2020 at 9:58