跳至內容

File:Mplwp factorial gamma stirling.svg

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書
原始檔案 (SVG 檔案,表面大小:600 × 400 像素,檔案大小:30 KB)


摘要

描述
English: Plot of the factorial, gamma function and Stirling's approximation in the interval [−0.2, 3.2]:
日期
來源 自己的作品
作者 Geek3
其他版本 Mplwp gamma stirling.svg
SVG開發
InfoField
 本SVG檔案的原始碼無效,因為出現mplwp個錯誤。
 本vector image使用Inkscape創作,或使用了其他工具。
此圖像經優質圖像指引的評估,被認為是一張優質圖像

العربية  جازايرية  беларуская  беларуская (тарашкевіца)  български  বাংলা  català  čeština  Cymraeg  Deutsch  Schweizer Hochdeutsch  Zazaki  Ελληνικά  English  Esperanto  español  eesti  euskara  فارسی  suomi  français  galego  עברית  हिन्दी  hrvatski  magyar  հայերեն  Bahasa Indonesia  italiano  日本語  Jawa  ქართული  Qaraqalpaqsha  한국어  kurdî  кыргызча  Latina  Lëtzebuergesch  lietuvių  македонски  മലയാളം  मराठी  Bahasa Melayu  Nederlands  Norfuk / Pitkern  polski  português  português do Brasil  rumantsch  română  русский  sicilianu  slovenčina  slovenščina  shqip  српски / srpski  svenska  தமிழ்  తెలుగు  ไทย  Tagalog  toki pona  Türkçe  українська  oʻzbekcha / ўзбекча  vèneto  Tiếng Việt  中文  中文(简体)  中文(繁體)  +/−

原始碼
InfoField

mplwp source code

The plot was generated with mplwp 1.6.3
#!/usr/bin/python
# -*- coding: utf8 -*-

import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
from math import *

code_website = 'http://commons.wikimedia.org/wiki/User:Geek3/mplwp'
try:
    import mplwp
except ImportError, er:
    print 'ImportError:', er
    print 'You need to download mplwp.py from', code_website
    exit(1)

name = 'mplwp_factorial_gamma_stirling.svg'
fig = mplwp.fig_standard(mpl)

xlim = -0.2, 3.2; fig.gca().set_xlim(xlim)
ylim = 0, 6.5; fig.gca().set_ylim(ylim)
mplwp.mark_axeszero(fig.gca())

from scipy.special import gamma
from scipy.optimize import brentq

f1 = lambda x: gamma(1 + x)
x1 = range(4)
y1 = [f1(xx) for xx in x1]
plt.plot(x1, y1, 'o', label='n!', zorder=3)

x2max = brentq(lambda x: f1(x) - ylim[1], 0, xlim[1])
x2 = np.linspace(xlim[0], x2max, 5000)
y2 = [f1(xx) for xx in x2]
plt.plot(x2, y2, label='$\Gamma(n+1)$', zorder=2,
         color=fig.gca().lines[-1].get_color())

f3 = lambda x: sqrt(2*pi*x)*(x/e)**x
x3max = brentq(lambda x: f3(x) - ylim[1], 0, xlim[1])
x3 = np.linspace(0, x3max, 5000)
y3 = [f3(xx) for xx in x3]
plt.plot(x3, y3, label=ur'$\sqrt{2\pi n}(n/e)^n$', zorder=1)

mpl.rc('legend', borderaxespad=1.3)
plt.legend(loc='upper left')
plt.savefig(name)
mplwp.postprocess(name)

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
GNU head 已授權您依據自由軟體基金會發行的無固定段落、封面文字和封底文字GNU自由文件授權條款1.2版或任意後續版本,對本檔進行複製、傳播和/或修改。該協議的副本列在GNU自由文件授權條款中。
w:zh:創用CC
姓名標示
此檔案採用創用CC 姓名標示 3.0 未在地化版本授權條款。
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
您可以選擇您需要的授權條款。
註解
InfoField
該圖片含有註解:在維基媒體共享資源上查看註解

說明

添加單行說明來描述出檔案所代表的內容
Comparison of plots of the gamma function and Stirling's approximation

共享資源質素評價 繁體中文 (已轉換拼寫)

維基共享資源品質形象 中文 (已轉換拼寫)

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2016年6月12日 (日) 13:04於 2016年6月12日 (日) 13:04 版本的縮圖600 × 400​(30 KB)Geek3opaque legend
2015年1月31日 (六) 12:10於 2015年1月31日 (六) 12:10 版本的縮圖600 × 400​(30 KB)Geek3factorial_gamma_stirling plot by Geek3

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案:

詮釋資料