cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

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

davidlimtw
8-Gravel

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

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

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:davidlimtw)

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

 

 

 

 

View solution in original post

1 REPLY 1
Werner_E
25-Diamond I
(To:davidlimtw)

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

 

 

 

 

Announcements

Top Tags