Tutorial: Zip command
[url=https://youtu.be/wQaX-K_8Mjc]Zip command in GeoGebra[/url]
[code]list1 = {1, 2, 3, 4, 5}[br]L = Zip(2*k+1, k, list1)[br][br]# Or equivalently[br]Sequence(2*k+1, k, 1, 5)[/code]
[url=https://geogebra.org/classic?command=list1={1,2,3,4,5};L=Zip(2*k--1,k,list1)]https://geogebra.org/classic?command=list1={1,2,3,4,5};L=Zip(2*k--1,k,list1)[/url]
[code]list1 = {0, 0.5, 1, 1.5, 2}[br]L = Zip(i^2+1, i, list1)[br][br]# Or equivalently[br]Sequence(i^2, i, 0, 2, 0.5)[/code]
[url=https://geogebra.org/classic?command=list1={0,0.5,1,1.5,2};L=Zip(i^2--1,i,list1)]https://geogebra.org/classic?command=list1={0,0.5,1,1.5,2};L=Zip(i^2--1,i,list1)[/url]
[code]list1 = Sequence(k, k, -4, 4, 0.2)[br]L = Zip(2*k, k, list1)[br][br]# Or equivalently[br]Sequence(2*k, k, -4, 4, 0.2)[/code]
[url=https://geogebra.org/classic?command=list1=Sequence(k,k,-4,4,0.2);L=Zip(2*k,k,list1)]https://geogebra.org/classic?command=list1=Sequence(k,k,-4,4,0.2);L=Zip(2*k,k,list1)[/url]
[code][/code][code]P = (-2, -2)[br]Q = (2, -2)[br]R = (-2, 2)[br]S = (2, 2)[br]Zip(Midpoint(A, B), A, {P, Q}, B, {R, S})[/code]
[url=https://geogebra.org/classic?command=P=(-2,-2);Q=(2,-2);R=(-2,2);S=(2,2);Zip(Midpoint(A,B),A,{P,Q},B,{R,S})]https://geogebra.org/classic?command=P=(-2,-2);Q=(2,-2);R=(-2,2);S=(2,2);Zip(Midpoint(A,B),A,{P,Q},B,{R,S})[/url]
[code][/code][code]A = (1, -3)[br]B = (3, -3)[br]C = (1, 1)[br]D = (3, 1)[br]E = (-3, 1)[br]F = (-1, 1)[br]G = (-3, -3)[br]H = (-1, -3)[br][br]Lk = {3, 4, 5, 6}[br][br]Zip(Polygon(P, Q, k), P, {A, C, G, E}, Q, {B, D, H, F}, k, Lk)[/code]
[url=https://geogebra.org/classic?command=A=(1,-3);B=(3,-3);C=(1,1);D=(3,1);E=(-3,1);F=(-1,1);G=(-3,-3);H=(-1,-3);Lk={3,4,5,6};Zip(Polygon(P,Q,k),P,{A,C,G,E},Q,{B,D,H,F},k,Lk)]https://geogebra.org/classic?command=A=(1,-3);B=(3,-3);C=(1,1);D=(3,1);E=(-3,1);F=(-1,1);G=(-3,-3);H=(-1,-3);Lk={3,4,5,6};Zip(Polygon(P,Q,k),P,{A,C,G,E},Q,{B,D,H,F},k,Lk)[/url]
[code][/code][code]Lk = -4..4 [br]LP = Flatten(Zip(Zip(Zip((i, j, k), i, Lk), j, Lk), k, Lk))[br]Lr = Zip(0.5*random(), k, 1..Length(LP))[br][br]LS = Zip(Sphere(P, r), P, LP, r, Lr)[/code]
[url=https://geogebra.org/3d?command=Lk=-4..4;LP=Flatten(Zip(Zip(Zip((i,j,k),i,Lk),j,Lk),k,Lk));Lr=Zip(0.5*random(),k,1..Length(LP));LS=Zip(Sphere(P,r),P,LP,r,Lr);SetVisibleInView(LP,-1,false);SetFilling(LS,1)]https://geogebra.org/3d?command=Lk=-4..4;LP=Flatten(Zip(Zip(Zip((i,j,k),i,Lk),j,Lk),k,Lk));Lr=Zip(0.5*random(),k,1..Length(LP));LS=Zip(Sphere(P,r),P,LP,r,Lr);SetVisibleInView(LP,-1,false);SetFilling(LS,1)[/url]
[code]LP = Sequence(Sequence(Sequence((i, j, k), i, -4, 4), j, -4, 4), k, -4, 4)[br]Lr = Sequence(Sequence(Sequence(0.5*random(), i, -4, 4), j, -4, 4), k, -4, 4)[br][br]LS = Sequence(Sequence(Sequence( Sphere( Element(LP,i,j,k),Element(Lr, i, j, k) ), i, 1, 9), j, 1, 9), k, 1, 9)[/code][br][br]Demo: [br][url=https://geogebra.org/3d?command=LP=Sequence(Sequence(Sequence((i,j,k),i,-4,4),j,-4,4),k,-4,4);Lr=Sequence(Sequence(Sequence(0.5*random(),i,-4,4),j,-4,4),k,-4,4);LS=Sequence(Sequence(Sequence(Sphere(Element(LP,i,j,k),Element(Lr,i,j,k)),i,1,9),j,1,9),k,1,9);SetVisibleInView(LP,-1,false);SetFilling(LS,1)]https://geogebra.org/3d?command=LP=Sequence(Sequence(Sequence((i,j,k),i,-4,4),j,-4,4),k,-4,4);Lr=Sequence(Sequence(Sequence(0.5*random(),i,-4,4),j,-4,4),k,-4,4);LS=Sequence(Sequence(Sequence(Sphere(Element(LP,i,j,k),Element(Lr,i,j,k)),i,1,9),j,1,9),k,1,9);SetVisibleInView(LP,-1,false);SetFilling(LS,1)[/url][br]
https://geogebra.github.io/docs/manual/en/commands/Zip/
If you like these tutorials, you can support my work in Patreon:[br][br][url=https://www.patreon.com/jcponce]https://www.patreon.com/jcponce[/url][br][br]∞ Thanks!