Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Logical-operations/J/logical-operations-1.j
Normal file
1
Task/Logical-operations/J/logical-operations-1.j
Normal file
|
|
@ -0,0 +1 @@
|
|||
aon=: *.`+.`(-.@[)`:0
|
||||
6
Task/Logical-operations/J/logical-operations-2.j
Normal file
6
Task/Logical-operations/J/logical-operations-2.j
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
a=: 0 0 1 1 NB. Work on vectors to show all possible
|
||||
b=: 0 1 0 1 NB. 2-bit combos at once.
|
||||
a aon b
|
||||
0 0 0 1
|
||||
0 1 1 1
|
||||
1 1 0 0
|
||||
11
Task/Logical-operations/J/logical-operations-3.j
Normal file
11
Task/Logical-operations/J/logical-operations-3.j
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(2b10001 b. table/~i.4);(2b10110 b. table/~i.4);<2b10000 b. table/~i.4
|
||||
┌───────────────┬───────────────┬───────────────┐
|
||||
│┌─────┬───────┐│┌─────┬───────┐│┌─────┬───────┐│
|
||||
││17 b.│0 1 2 3│││22 b.│0 1 2 3│││16 b.│0 1 2 3││
|
||||
│├─────┼───────┤│├─────┼───────┤│├─────┼───────┤│
|
||||
││0 │0 0 0 0│││0 │0 1 2 3│││0 │0 0 0 0││
|
||||
││1 │0 1 0 1│││1 │1 0 3 2│││1 │0 0 0 0││
|
||||
││2 │0 0 2 2│││2 │2 3 0 1│││2 │0 0 0 0││
|
||||
││3 │0 1 2 3│││3 │3 2 1 0│││3 │0 0 0 0││
|
||||
│└─────┴───────┘│└─────┴───────┘│└─────┴───────┘│
|
||||
└───────────────┴───────────────┴───────────────┘
|
||||
Loading…
Add table
Add a link
Reference in a new issue