How to create this series with unequal steps?

Hi, I would like to generate a series of numbers with a predefined minimum and maximum value and a specific pattern:

Series from 0 to 12 with following unequal steps:

0
X Size A
One Step from A
X Size B
One Step from B
X Size C
OneStep from C
XSize D
12

=

0
3
4
7
8
10
11
12

It is important that I can insert for all Different X-Values different Numbers and the amount of X values should be changeable. Unfortunately, I am not able to solve that in GH

Thanks for your help!

Can someone help me please?

Really? You can’t wait 40 minutes on a Sunday evening?

If you put your increments into a multiline panel, you can use mass addition to get your sequence. Just look at the partial results output.

6 Likes

Can you show me with help of the example upside how to generate the series? I can not follow your solution. I am sorry for that.


I think that something like this is what David Rutten said!

So you need to weave together your list of custom increments with a list of ones. Going from those two lists:

\{x_0, x_1, x_2, ..., x_n\}
\{1,1,1,...,1\}

To:

\{x_0,1, x_1,1, x_2,1,...,x_n,1\}

That’s the weave component.

1 Like

I think your profile picture really fits this comment :sweat_smile:

1 Like