Calculate Integer Complexity

This Matlab example M-file is to calculate the Integer Complexity for Number Theory.
120 Downloads
Updated 22 Feb 2015

View License

The complexity of an integer is the least number of 1s needed to represent it using only additions, multiplications, and parentheses. This version 1 program uses the minimum amont of "+", the next release will be minimum amount of "x".

Cite As

steed huang (2024). Calculate Integer Complexity (https://www.mathworks.com/matlabcentral/fileexchange/49792-calculate-integer-complexity), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Numeric Types in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0