File:EulerPhi.svg

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(SVG文件,尺寸为731 × 551像素,文件大小:232 KB)


摘要

描述
English: Plot of the first 1000 values of the en:Euler's totient function. Svg version of Image:EulerPhi.PNG
Italiano: I primi 1000 valori della it:Funzione φ di Eulero. Versione svg di Image:EulerPhi.PNG.
日期
来源 自己的作品
 
本W3C状态不明的矢量图使用Matplotlib创作.
作者 Pietro Battiston (it:User:Toobaz)
其他版本 Image:EulerPhi.PNG

Created with the following script, ran in "ipython -pylab":

xlabel('n')
ylabel('$\phi(n)$')
plot([fi(i) for i in range(1,1000)], 'b.')

"fi" is the Euler φ, defined for instance as:

def fattorizza(n):
    c = 0
    f = {}
    for i in xrange( 2, int(sqrt(n))+1 ):
        if not n%i:
            f[i] = 1
            n /= i
        while not n%i:
            f[i] += 1
            vn = n
            n /= i
        if n == 1:
            return f
    f[n] = 1
    return f

def fi(n):
    if n == 1:
        return 1
    fi = 1
    f = fattorizza(n)
    for p in f:
        k = f[p]
        fi *= (p-1)*p**(k-1)
    return fi

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
GNU head 已授权您依据自由软件基金会发行的无固定段落及封面封底文字(Invariant Sections, Front-Cover Texts, and Back-Cover Texts)的GNU自由文件许可协议1.2版或任意后续版本的条款,复制、传播和/或修改本文件。该协议的副本请见“GNU Free Documentation License”。
w:zh:知识共享
署名 相同方式共享
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
您可以选择您需要的许可协议。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

image/svg+xml

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2012年5月17日 (四) 16:072012年5月17日 (四) 16:07版本的缩略图731 × 551(232 KB)ItzuvitReverted to version as of 09:29, 16 March 2010
2012年5月13日 (日) 12:222012年5月13日 (日) 12:22版本的缩略图1,200 × 1,200(51 KB)AntonsusiValid code; taking exactly one pixel for one scale unit; easier code.
2010年3月16日 (二) 09:292010年3月16日 (二) 09:29版本的缩略图731 × 551(232 KB)ToobazFixed the decomposition into primes: (x)range doesn't contain extrema.
2009年5月24日 (日) 14:292009年5月24日 (日) 14:29版本的缩略图731 × 551(231 KB)Toobaz{{Information |Description={{en|1=Plot of the first 1000 values of the en:Euler's totient function. Svg version of Image:EulerPhi.PNG }} {{it|1=I primi 1000 valori della it:Funzione φ di Eulero. Versione svg di Image:EulerPhi.PNG.}} |

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件:

元数据