> |
IFSierp_k := proc(n,P,k)
local j, l, s,B1,B2,B3, f1,f2,f3,f,seqpoints,sierp,pts,ctrpts:
seqpoints := [[1,1,1,1,1,1]];
s := NULL;
B1:=matrix([[1,0,0,0,0,0],[0,0,0,0,1,0],[0,0,0,1,0,0],[k/16,0,0,k/16,(16-2*k)/16,0],
[k/16,0,0,(16-2*k)/16,k/16,0],[(16-2*k)/16,0,0,k/16,k/16,0]]);
B2:=matrix([[0,0,0,1,0,0],[0,0,0,0,0,1],[0,0,1,0,0,0],[0,0,k/16,k/16,0,(16-2*k)/16],
[0,0,(16-2*k)/16,k/16,0,k/16],[0,0,k/16,(16-2*k)/16,0,k/16]]);
B3:=matrix([[0,0,0,0,1,0],[0,1,0,0,0,0],[0,0,0,0,0,1],[0,(16-2*k)/16,0,0,k/16,k/16],
[0,k/16,0,0,k/16,(16-2*k)/16],[0,k/16,0,0,(16-2*k)/16,k/16]]);
f1:=evalm(inverse(P)&*B1&*P); |