Grasshopper

algorithmic modeling for Rhino

Hi, 

i have a list of values:

55,42,33,27,13,

i want to create a list out of it on this way:

55, (55+42),(55+42+33),(55+42+33+27),(55+42+33+27+13)

x1 = x1

x2 = x2 + x1

x3 = x3 + x2 + x1

x4 = x4 + x3 + x2 + x1

in few words 

i want the new list to be an incremental mass addition of the values previous to the value

Views: 212

Replies to This Discussion

I'm not sure why so many people overlook the second output of the mass addition component. Don't worry you are not the only one.

Guilty as charged here for along time. Realized it a few months ago.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service