File:Riemann Integration and Darboux Upper Sums.gif

頁面內容不支援其他語言。
維基教科書,自由的教學讀本

Riemann_Integration_and_Darboux_Upper_Sums.gif(800 × 600 像素,檔案大小:536 KB,MIME 類型:image/gif、​循環、​8 畫格、​6.4秒)

摘要

描述
English: This function is y=x^2.
日期
來源

自己的作品

 
本GIF 點陣圖使用Matplotlib創作。
作者 IkamusumeFan

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
w:zh:創用CC
姓名標示 相同方式分享
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
  • 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。

Matplotlib (Python)

# Author: Ika, 2013-09-15

import numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp
from matplotlib.patches import Polygon
import random                                                                        

fig=plt.figure()
ax = fig.add_subplot(111)

ax.set_xlim(0,2)
ax.set_ylim(0,4)

X = np.arange(0,2.01,0.01)
Y = X*X
# Plot the curve and area.
ax.plot(X, Y)

verts = [(0,0)] + zip(X,Y) + [(2,0)]
poly = Polygon(verts, facecolor='blue',alpha=0.5,edgecolor='blue')
ax.add_patch(poly)
plt.savefig("frame0100.jpg")

# Generate the files for the sums.
ord = 0;
while (ord<7):
	plt.clf()
	fig=plt.figure()
	ax = fig.add_subplot(111)
	interval = 1.0/(2**ord)
	ax.set_xlim(0,2)
	ax.set_ylim(0,4)

	X = np.arange(0,2.01,0.01)
	Y = X*X

	ax.plot(X, Y)
	ax.text(0.2,3.0,'Step=1/'+str(2**ord),size=36);
	x=interval;
	while (x<2+interval/2.0):
		verts = [(x-interval,0)]+[(x-interval,x*x)]+[(x,x*x)]+[(x,0)];
		poly = Polygon(verts, facecolor='blue', alpha=0.5,edgecolor='black')
		ax.add_patch(poly)
		x=x+interval;

	plt.savefig("frame00"+str(ord)+".jpg");
	
	ord = ord+1;

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

檔案來源 Chinese (Taiwan) (已轉換拼寫)

檔案歷史

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

日期/時間縮⁠圖尺寸使用者備⁠註
目前2013年9月15日 (日) 06:06於 2013年9月15日 (日) 06:06 版本的縮圖800 × 600(536 KB)IkamusumeFanUser created page with UploadWizard

下列頁面有用到此檔案:

全域檔案使用狀況

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