Testing Waters

Searchâ€¦

Projects

Patterns

Geometry

Lists

Waves

Imperative

1

def abc(a,b)

2

{

3

ab = [Imperative]

4

{

5

y = [][];

6

c = 0;

7

d = 0;

8

e = List.OfRepeatedItem(0,b);

9

while (c<a)

10

{

11

f = Math.RandomList(b);

12

while (d<b)

13

{

14

y[c][d] = f[d]+e[d];

15

e[d] = y[c][d];

16

d = d + 1;

17

}

18

c = c + 1;

19

d = 0;

20

}

21

return = y;

22

}

23

e = Point.ByCoordinates((0..5..#a),ab<1>);

24

f = NurbsCurve.ByControlPoints(e,3);

25

return f;

26

};

Copied!

Associative

1

rndLst1 = Math.RandomList(xCount*yCount);

2

rndLst2 = List.Chop(rndLst1,yCount);

3

rndLst3 = List.TakeItems(rndLst2<1>,1..yCount);

4

rndLst4 = Math.Sum(rndLst3);

5

nrbCrv1 = NurbsCurve.ByControlPoints(List.Transpose

6

(Point.ByCoordinates((0..5..#xCount),rndLst4)),3);

Copied!

Last modified 1yr ago

Copy link

Contents