Jump to content
Wikipedia The Free Encyclopedia

File:Stability region for Euler method.svg

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Original file (SVG file, nominally 720 ×ばつ 540 pixels, file size: 23 KB)
This is a file from the Wikimedia Commons. Information from its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

Summary

DescriptionStability region for Euler method.svg
English: Stability region for Euler method
Date
Source Own work
Author Helmut Podhaisky
SVG development
InfoField
The SVG code is valid .
This plot was created with Matplotlib.
Source code
InfoField

Python code

frompylabimport linspace,pi,exp,real,imag,axis
importmatplotlib.pathasmpath
importmatplotlib.patchesasmpatches
importmatplotlib.pyplotasplt
w=exp(1j*linspace(0,2*pi,200))
Path=mpath.Path
fig = plt.figure()
for name,z in zip(['Euler','trapezoidal', 'AB2'],\
 [ w-1, [5j,-5+5j,-5-5j,-5j,5j],2*(w**2-w)/(3*w-1)]):
 fig.clf()
 ax=fig.add_subplot(111)
 verts=map(lambda z:(real(z),imag(z)), z)
 codes=[Path.MOVETO]+[Path.LINETO]*(len(verts)-2)+[Path.CLOSEPOLY]
 path=mpath.Path(verts,codes)
 patch=mpatches.PathPatch(path,facecolor=[1, 0.5, 0.8],edgecolor='black',alpha=1)
 ax.add_patch(patch)
 ax.plot([-3,2],[0,0],'--',color='black')
 ax.plot([0,0],[-2,2],'--',color='black')
 ax.set_xlim(-3,2)
 ax.set_ylim(-2,2)
 fig.savefig("Stability region for "+name+" method.svg")

Licensing

Public domainPublic domainfalsefalse
[画像:Public domain] I, the copyright holder of this work, release this work into the public domain . This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

source of file<\/a>"}},"text\/plain":{"en":{"":"source of file"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":66458942,\"id\":\"Q66458942\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P7482":"original creation by uploader<\/a>"}},"text\/plain":{"en":{"P7482":"original creation by uploader"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P7482 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
inception<\/a>"}},"text\/plain":{"en":{"":"inception"}}},"{\"value\":{\"time\":\"+2010年08月26日T00:00:00Z\",\"timezone\":0,\"before\":0,\"after\":0,\"precision\":11,\"calendarmodel\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q1985727\"},\"type\":\"time\"}":{"text\/html":{"en":{"P571":"26 August 2010"}},"text\/plain":{"en":{"P571":"26 August 2010"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P571 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

26 August 2010

File history

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

Date/TimeThumbnailDimensionsUserComment
current09:46, 26 August 2010 Thumbnail for version as of 09:46, 26 August 2010 720 ×ばつ 540 (23 KB)Helmut.podhaisky no
09:24, 26 August 2010 Thumbnail for version as of 09:24, 26 August 2010 720 ×ばつ 540 (23 KB)Helmut.podhaisky {{Information |Description={{en|1=Stability region for Euler method}} |Source=python script |Author=Helmut Podhaisky |Date=2010年08月26日 |Permission= |other_versions= }}

The following 2 pages use this file:

Global file usage

The following other wikis use this file:

AltStyle によって変換されたページ (->オリジナル) /