Skip to main content
8-Gravel
February 25, 2025
Solved

Loop / Program for calculating area under vector then cummulate the area

  • February 25, 2025
  • 1 reply
  • 506 views

Dear All,

 

Found the solution to stack and filter the vector to calculated value.

 

I am looking for a loop or formula which I can calculate area under each section of the vector and then cummulate them.

 

davidlimtw_0-1740493590532.pngdavidlimtw_1-1740493619678.png

 

Best answer by Werner_E

The first argument in your function A.tot is without any use and so you should omit it.

Its not absolutely clear to me what you are trying to achieve.

Could it be that you are looking for some table of this kind

Werner_E_0-1740495996442.png

Another way to get the cumulative values would be by using integration again

Werner_E_1-1740496226150.png

 

 

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
February 25, 2025

The first argument in your function A.tot is without any use and so you should omit it.

Its not absolutely clear to me what you are trying to achieve.

Could it be that you are looking for some table of this kind

Werner_E_0-1740495996442.png

Another way to get the cumulative values would be by using integration again

Werner_E_1-1740496226150.png