File:Integration simpson.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 350 × 109 pixels. Other resolutions: 320 × 100 pixels | 640 × 199 pixels | 1,024 × 319 pixels | 1,280 × 399 pixels | 2,560 × 797 pixels.
Original file (SVG file, nominally 350 × 109 pixels, file size: 17 KB)
File information
Structured data
Captions
Summary[edit]
DescriptionIntegration simpson.svg |
English: Numerical integration by the Simpson's Method. The function being used is . The interval is split in 15 pieces.
Español: Integración numérica por el método de Simpson. La función a integrar es . El intervalo está partido en 15 sub-intervalos. |
Date | |
Source | Own work |
Author | Nicoguaro |
SVG development InfoField | This plot was created with Matplotlib. |
Source code InfoField | Python codefrom __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from scipy.interpolate import interp1d
# Interpolation data
x = np.linspace(-2, 2, 15)
y = x**2 + np.sin(2*np.pi*x)
f = interp1d(x, y, kind='quadratic')
# Fine data
x = np.linspace(-2, 2, 200)
y = x**2 + np.sin(2*np.pi*x)
# Plots
fig = plt.figure(figsize=(4.5, 1))
ax = plt.subplot(1, 1, 1)
plt.plot(x, y, lw=2, zorder=6)
plt.plot(x, f(x), '--r', lw=2, zorder=7)
plt.ylim(-1.5, 4.75)
plt.xticks([-2, -1, 0, 1, 2])
plt.yticks([0, 2, 4])
plt.grid(b=True, lw=2, color='gray', linestyle='solid', alpha=0.5,
zorder=3)
ax.spines['right'].set_color('none')
ax.spines['top'].set_color('none')
plt.savefig('Integration_simpson.svg', bbox_inches='tight')
plt.show()
|
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 4.0 International 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.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 13:34, 12 July 2016 | 350 × 109 (17 KB) | Nicoguaro (talk | contribs) | Change size of text | |
13:24, 12 July 2016 | 360 × 123 (17 KB) | Nicoguaro (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on bn.wikipedia.org
- Usage on cs.wikipedia.org
- Usage on en.wikipedia.org
- Usage on es.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 280pt |
---|---|
Height | 87pt |