[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.11390755 [View]
File: 48 KB, 1285x620, Screen Shot 2020-02-15 at 7.03.27 PM.png [View same] [iqdb] [saucenao] [google]
11390755

>>11388817
c[x] = floor[x] -floor[x/2] -floor[x/3] +floor[x/6]
Notice how there are alternating steps of two widths: a shorter one with a width of 2, and a wider one with a width of 4.

I would like to create a similar function d[x] with the same property of steps going up by 1, and with the shorter steps having the same width of 2. However, I would like the wider step to have a width of 6, instead of 4.

How do I achieve this?

>> No.11388544 [View]
File: 48 KB, 1285x620, Screen Shot 2020-02-15 at 7.03.27 PM.png [View same] [iqdb] [saucenao] [google]
11388544

>>11376745
c[x] = floor[x] -floor[x/2] -floor[x/3] +floor[x/6]
Notice how there are alternating steps of two widths: a shorter one with a width of 2, and a wider one with a width of 4.

I would like to create a similar function d[x] with some property of steps going up by 1, and with the shorter steps having the same width of 2. However, I would like the longer step to have a width of 6.

How do I achieve this?

Navigation
View posts[+24][+48][+96]