Group Abstract Group Abstract

Message Boards Message Boards

0
|
87 Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:
GROUPS:

Why is the code in this image not equal to this one-dimensional code form?

Posted 3 days ago

enter image description here

list3 = NestList[
   ArrayFlatten[{{{#, 0, #}, {0, 0, 0}, {#, 0, #}}, {{0, 0, 0}, {0, #,
         0}, {0, 0, 0}}, {{#, 0, #}, {0, 0, 0}, {#, 0, #}}}] &, {{{1}}},
    3];

How can the code form in the image be rewritten equivalently in one-dimensional form?

POSTED BY: David carl

You forgot the ,3 at the end of ArrayFlatten:

NestList[ArrayFlatten[{
    {{#, 0, #}, {0, 0, 0}, {#, 0, #}},
    {{0, 0, 0}, {0, #, 0}, {0, 0, 0}},
    {{#, 0, #}, {0, 0, 0}, {#, 0, #}}},
   3] &,
 {{{1}}}, 3]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard