D(60)=D(2^2*3*5)=60(2/2+1/3+1/5)=92
orD(81)=D(3^4)=4⋅3^3⋅D(3)=4⋅27⋅1=108
Cite As
Hoi Sing Lau (2026). Arithmetic derivative (https://se.mathworks.com/matlabcentral/fileexchange/180079-arithmetic-derivative), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Huffman Coding and Arithmetic Coding
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
