Unit fraction analysis

版本 1.0.0.0 (643 字节) 作者: Daniel
determines how 1/n behaves in base b
138.0 次下载
更新时间 2014/3/6

查看许可证

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.

引用格式

Daniel (2024). Unit fraction analysis (https://www.mathworks.com/matlabcentral/fileexchange/45771-unit-fraction-analysis), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Numbers and Precision 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0