2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -0,0 +1,12 @@
|
|||
\\ Sierpinski triangle fractal
|
||||
\\ Note: plotmat() can be found here on
|
||||
\\ http://rosettacode.org/wiki/Brownian_tree#PARI.2FGP page.
|
||||
\\ 6/3/16 aev
|
||||
pSierpinskiT(n)={
|
||||
my(sz=2^n,M=matrix(sz,sz),x,y);
|
||||
for(y=1,sz, for(x=1,sz, if(!bitand(x,y),M[x,y]=1);));\\fends
|
||||
plotmat(M);
|
||||
}
|
||||
{\\ Test:
|
||||
pSierpinskiT(9); \\ SierpT9.png
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue