*** Pour masquer/découvrir le code Asymptote qui a permis de créer la figure, il faut cliquer dessus. ;-) ***
- CODE ASYMPTOTE de la figure ci-dessus : Tout sélectionner
- import graph3;
- currentprojection=orthographic(10,6,7);
- size(250);
- currentlight=Viewport;
- int n=5;
- for(int k=0; k<=n; ++k)
- for(int i=0; i<=n-k; ++i)
- draw(shift(i,n-k-i,k)*unitcube,paleblue,1bp+black);
- limits((0,0,0),(n+2,n+2,n+2));
- xaxis3("$x$",Arrow3);
- yaxis3("$y$",Arrow3);
- zaxis3("$z$",Arrow3);
Le code de la figure est accessible en étant connecté et en cliquant sur l'image.
Bon, ok... ils ne sont pas vraiment empilés

*** Pour masquer/découvrir le code Asymptote qui a permis de créer la figure, il faut cliquer dessus. ;-) ***
- CODE ASYMPTOTE de la figure ci-dessus : Tout sélectionner
- import graph3;
- currentprojection=orthographic(10,-6,7);
- size(250);
- currentlight=Viewport;
- int n=5;
- for(int k=0; k<=n; ++k)
- for(int i=0; i<=n-k; ++i)
- draw(shift(i,n-k-i,k)*unitcube,paleblue,1bp+black);
- limits((0,0,0),(n+2,n+2,n+2));
- xaxis3("$x$",Arrow3);
- yaxis3("$y$",Arrow3);
- zaxis3("$z$",Arrow3);