[Jprogramming] J 9.01 funny result
Devon McCormick
devonmcc at gmail.com
Fri Jan 10 22:28:35 UTC 2020
So, in my recently installed J 9.01 (Engine: j901/j64avx2/windows), I get
this surprising result in the final case (indentation added manually since
this does not work for my session under emacs):
mat=. <:+:10 10?@$0
+/,mat+/ . * %.mat
10
mat=. <:+:100 100?@$0
+/,mat+/ . * %.mat
100
mat=. <:+:1000 1000?@$0
+/,mat+/ . * %.mat
21278.6
The last sum should be 1000.
--
Devon McCormick, CFA
Quantitative Consultant
More information about the Programming
mailing list