Kronecker product based fractals: Difference between revisions

imported>Maxima enthusiast
Line 2,792:
 
=={{header|Maxima}}==
Using function definidedefined in Kronecker product task page
<syntaxhighlight lang="maxima">
pow_kron(matr,n):=block(MATR:copymatrix(matr),
Line 2,798:
MATR);
 
/* Examples (images are shown in format png)*/
A:matrix([0,1,0],[1,1,1],[0,1,0])$
B:matrix([1,1,1],[1,0,1],[1,1,1])$
Line 2,808:
at(%,[0="",1="x"]);
</syntaxhighlight>
[[File:Vicsek.png|thumb]]
{{out}}
<pre>
https://static.wikiforge.net/rosettacodewikitide/thumb/5/50/Vicsek.png/428px-Vicsek.png?20230824171454
 
https[[File://static.wikiforge.net/rosettacodewikitide/b/b0/SierpinskiCarpet.png|thumb]]
</pre>
 
=={{header|Nim}}==