File:Stability region for Euler method.svg

原本檔案(SVG檔案,表面大細: 720 × 540 像素,檔案大細:23 KB)

摘要

描述
English: Stability region for Euler method
日期
來源 自己作品
作者 Helmut Podhaisky
Other versions Euler method -- Trapzoidal method -- Adams Bashforth
SVG genesis
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
原始碼
InfoField

Python code

from pylab import linspace,pi,exp,real,imag,axis

import matplotlib.path as mpath
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt

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")

協議

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

圖中顯示嘅係

26 8 2010

檔案歷史

撳個日期/時間去睇響嗰個時間出現過嘅檔案。

日期/時間縮圖尺寸用戶註解
現時2010年8月26號 (四) 09:46響2010年8月26號 (四) 09:46嘅縮圖版本720 × 540(23 KB)Helmut.podhaiskyno
2010年8月26號 (四) 09:24響2010年8月26號 (四) 09:24嘅縮圖版本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= }}

以下嘅1版用到呢個檔:

全域檔案使用情況

下面嘅維基都用緊呢個檔案: