Jump to content

Arithmetic coding/As a generalized change of radix: Difference between revisions

m
(J: rewrite)
Line 213:
e,~<.(L+p)%10^e
)
 
 
aekDec=:adverb define
Line 299 ⟶ 298:
TOBEORNOTTOBEORTOBEORNOT</lang>
 
Note that for this task we use our plaintext to generate our dictionary for decoding. Also note that we use rational numbers, rather than floating point, for our dictionary, because floating point tends to be inexact.
 
=={{header|Perl}}==
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.