Here's an interesting image. Here's the J TECH Grade 3 review of Grade 2
for the start of the year. Addition and subtraction are the heart of Grade
2. It develops the idea that addition is commutative and subtraction is not.
Run this code in jhs and don't look too carefully at the code! You might
see the answer to this challenge.
Run the code. You can look at all the results. Now try to apply one J verb
to something in the dialog and get the final image.
If you get any interesting images in your search, send them along.
load 'viewmat'
GRB=:1 0 2{"1 (#:.8){0 255
]A=:4 4$'ABCDEFGHIJKLMNLOP'
1 2 3 4{."0 1 A
+table~i.11
]B=:+/~i.11
]C=:(>:i.11){."0 1 B
$C
D=:":C
$D
]E=:2+3*i.11
]F=:E{."0 1 D
]G=:<'+'
]H=:]HH=:<}.,' ',"1 ":,.i.11
]I=:<,.i.11
]J=:<F
]PLUS=:(G,.H),:I,.J
]K=:<'-'
]L=:<}.,' ',"1 ":,.i.11
]M=:<,.i.21
]N=:":((i.11),10#11){."0 1 (i.21)-/i.11
]O=:(2+3*i.11),10#32
]P=:O{."0 1 N
]MINUS=:(K,.L),:M,.<P
]PMT=:PLUS,.MINUS
]GRB viewmat B
]GRB viewmat ".P
]GRB viewmat P
Linda
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm