[Jprogramming] Square Roots and Extended Arithmetic

Skip Cave skip at caveconsulting.com
Thu Nov 1 19:12:49 UTC 2018


a=:1234567890101020405060708090x
a=2^~a^1r2
1
a=2^~%:a
1
a-:2^~a^1r2
1
a-:2^~%:a
1
NB. All looking good. However:
x:2^~a^1r2
1234567890101024064259751936
a
1234567890101020405060708090
NB. Clearly not equal.
x:2^~%:a
1234567890101020490846961664
a
1234567890101020405060708090
NB. Also clearly not equal, and different from the first one!
What's going on!
Skip


More information about the Programming mailing list

AltStyle によって変換されたページ (->オリジナル) /