This little file will tell you after how many decimals will a repeating decimal start to repeat as well as how many digits will repeat.
example : 1/24 = 0.0416666666....
so unit(24,10) will return
Non-terminating
After 3 non-repeating digits, there are 3 repeating digits.
but 1/24 in base 6 = 0.013 so this will return:
Terminating
Terminates after 3 digits.
Citar como
Daniel (2024). Unit fraction analysis (https://www.mathworks.com/matlabcentral/fileexchange/45771-unit-fraction-analysis), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2012b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Numbers and Precision en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |