Version 1 using prime factorization
Version 2 using FFT
as examples try:
eulerphi(100) or eulerphiFFT(100) or
for k = 1:1000; ep(k) = eulerphi(k) ; end; scatter((1:1000),ep,3)
引用格式
Thomas (2024). two versions of the Euler-phi function (https://www.mathworks.com/matlabcentral/fileexchange/76847-two-versions-of-the-euler-phi-function), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2019a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |