Sum and product puzzle: Difference between revisions
Content added Content deleted
Line 1,094: | Line 1,094: | ||
'''Tacit Solution''' |
'''Tacit Solution''' |
||
<syntaxhighlight lang="j">(X=. 0&{"1) (Y=. 1&{"1) |
<syntaxhighlight lang="j">(X=. 0&{"1) (Y=. 1&{"1) |
||
⚫ | |||
candidates=. ([ echo o (' candidates' ,~ ": (o=. @:) #)) |
candidates=. ([ echo o (' candidates' ,~ ": (o=. @:) #)) |
||
Line 1,099: | Line 1,100: | ||
filter0=. candidates o (constraints # ]) |
filter0=. candidates o (constraints # ]) |
||
⚫ | |||
(sd=. S </. ]) (pd=. P </. ]) NB. sum and product decompositions |
(sd=. S </. ]) (pd=. P </. ]) NB. sum and product decompositions |
||