Using autoreference in a counter
As points, expressions can also be autoreferent. A counter can be made and we can use it for example for lines of a spreadsheet in exploration of statistics.
In the next file, we have
nb recursive : if(go==0;0;if(d(M)>0;nb+1;nb))
buff recursive : if(nb==0;0;if(coupe==1;buff+1;buff))
Needle [AB] : A(if(go==0;0;xA), if(go==0;0,5;yA)) and B(if(go==0;1;xA+cos(t)),if(go==0;0,5;yA+sin(t))) with t =random(360), xA and yA =-5+random(10)
cut : abs(floor(y(B))-floor(y(A)))==1
We draw the track of needle [AB], with two colors, blue if cut=0 and red if cut=1.
|