Decode problem
Posted: Wed Aug 01, 2018 9:33 am
In the book : "Mastering Dyalog APL" , page 461 exercise K-1
The question(s):
What is the result of :
a) 0 ⊥ 12 34 60 77 19
b) 1 ⊥ 12 34 60 77 19
Results in 19 and 202 respectively. No problem here
a) +/(12×0) (34×0) (60×0) (77×0) 19
b) +/ 12 34 60 77 19
But what happens with:
2 ⊥ 12 34 60 77 19 (results in 877 , but how?)
I was thinking that I understood ENCODE and DECODE but apparently.... :-(
The question(s):
What is the result of :
a) 0 ⊥ 12 34 60 77 19
b) 1 ⊥ 12 34 60 77 19
Results in 19 and 202 respectively. No problem here
a) +/(12×0) (34×0) (60×0) (77×0) 19
b) +/ 12 34 60 77 19
But what happens with:
2 ⊥ 12 34 60 77 19 (results in 877 , but how?)
I was thinking that I understood ENCODE and DECODE but apparently.... :-(