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

Content added Content deleted
(J: rewrite)
Line 213: Line 213:
e,~<.(L+p)%10^e
e,~<.(L+p)%10^e
)
)



aekDec=:adverb define
aekDec=:adverb define
Line 299: Line 298:
TOBEORNOTTOBEORTOBEORNOT</lang>
TOBEORNOTTOBEORTOBEORNOT</lang>


Note that for this task we use our plaintext to generate our dictionary for decoding.
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}}==
=={{header|Perl}}==