File:Riemann Integration and Darboux Lower Sums.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Riemann_Integration_and_Darboux_Lower_Sums.gif (800 × 600 pixels, file size: 484 KB, MIME type: image/gif, looped, 8 frames, 6.4 s)
File information
Structured data
Captions
Summary[edit]
DescriptionRiemann Integration and Darboux Lower Sums.gif |
English: This function is y=x^2. |
Date | |
Source |
Own work This plot was created with Matplotlib. |
Author | IkamusumeFan |
Matplotlib (Python)[edit]
# Author: Ika, 2013-09-14
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
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")
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-interval)*(x-interval))]+[(x,(x-interval)*(x-interval))]+[(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;
Licensing[edit]
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 06:13, 15 September 2013 | 800 × 600 (484 KB) | IkamusumeFan (talk | contribs) | Wrong for Lebesgue Integral. | |
06:06, 15 September 2013 | 800 × 600 (460 KB) | IkamusumeFan (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on ca.wikipedia.org
- Usage on ckb.wikipedia.org
- Usage on da.wikipedia.org
- Usage on en.wikipedia.org
- Usage on fa.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on fr.wikibooks.org
- Usage on hu.wikipedia.org
- Usage on id.wikipedia.org
- Usage on zh-yue.wikipedia.org
- Usage on zh.wikibooks.org