Jump to content

File:Expinvsqlau SVG.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 720 × 540 pixels, file size: 43 KB)

Summary

Description
English: The graph opposite shows e−1/x2 in black and its Laurent approximations for N = 1, 2, 3, 4, 5, 6, 7 and 50.
Date
Source Own work
Author IkamusumeFan
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

# Author: Ika, 2013-08-24

import math as m
import numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp
import random

plt.figure()
plt.axes([0.02,0.13,0.9,0.8])
plt.hold(True)

Q = []

# Draw the function curves.
X = np.arange(-3, 3, 0.001)
i=1
Y = 1+(-1)**i*(X**(-2*i))/m.factorial(i)
a = plt.plot(X, Y, '-', color='#b30000', lw=4)
Q.append(a)

i=2
Y = Y+(-1)**i*(X**(-2*i))/m.factorial(i)
a = plt.plot(X, Y, '-', color='#00b300', lw=4)
Q.append(a)

i=3
Y = Y+(-1)**i*(X**(-2*i))/m.factorial(i)
a = plt.plot(X, Y, '-', color='#0000b3', lw=4)
Q.append(a)

i=4
Y = Y+(-1)**i*(X**(-2*i))/m.factorial(i)
a = plt.plot(X, Y, '-', color='#b3b300', lw=4)
Q.append(a)

i=5
Y = Y+(-1)**i*(X**(-2*i))/m.factorial(i)
a = plt.plot(X, Y, '-', color='#00b3b3', lw=4)
Q.append(a)

i=6
Y = Y+(-1)**i*(X**(-2*i))/m.factorial(i)
a = plt.plot(X, Y, '-', color='#b300b3', lw=4)
Q.append(a)

i=7
Y = Y+(-1)**i*(X**(-2*i))/m.factorial(i)
a = plt.plot(X, Y, '-', color='#b3b3b3', lw=4)
Q.append(a)

while (i<50):
	i=i+1
	Y = Y+(-1)**i*(X**(-2*i))/m.factorial(i)
a = plt.plot(X, Y, '-', color='#33b300', lw=4)
Q.append(a)

Y = np.exp(-1/(X*X))
a = plt.plot(X, Y, '-', color='black', lw=4)
Q.append(a)

plt.xlim(-3,3)
plt.ylim(-2,4)
# Set up the spines
ax = plt.gca()
ax.spines['right'].set_color('none')
ax.spines['top'].set_color('none')
ax.xaxis.set_ticks_position('bottom')
ax.spines['bottom'].set_position(('data',0))
ax.yaxis.set_ticks_position('left')
ax.spines['left'].set_position(('data',0))

plt.savefig("Expinvsqlau_SVG.svg")

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

24 August 2013

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current07:15, 25 August 2013Thumbnail for version as of 07:15, 25 August 2013720 × 540 (43 KB)IkamusumeFanThe previous edition did not take the term whose n=0 into the sum, leading to the failure of approximation.
02:38, 25 August 2013Thumbnail for version as of 02:38, 25 August 2013720 × 540 (43 KB)IkamusumeFanUser created page with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata