ファイル:Gershgorin Disk Theorem Example.svg

提供: testwiki
ナビゲーションに移動 検索に移動
    元のファイル (SVG ファイル、503 × 344 ピクセル、ファイルサイズ: 24キロバイト)

    このファイルはウィキメディア・コモンズのものであり、他のプロジェクトで使用されている可能性があります。 ウィキメディア・コモンズでのファイル解説ページにある説明を以下に示します。

    概要

    解説
    English: Gershgorin disk theorem example. This diagram shows the discs in yellow derived for the eigenvalues. The first two disks overlap and their union contains two eigenvalues. The third and fourth disks are disjoint from the others and contain one eigenvalue each.
    日付
    原典 投稿者自身による著作物
    作者 Nicoguaro
    SVG 開発
    InfoField
     このSVGのソースコードは正しい。
     この ベクター画像はmatplotlibで作成されました。
    ソースコード
    InfoField

    Python code

    import numpy as np
    import matplotlib.pyplot as plt
    
    # Graph setup
    yellow = "#e9eabb"
    blue = "#122a8c"
    gray = '#757575'
    plt.rcParams["text.color"] = gray
    plt.rcParams["font.size"] = 12
    plt.rcParams["xtick.color"] = gray
    plt.rcParams["ytick.color"] = gray
    plt.rcParams["axes.labelcolor"] = gray
    plt.rcParams["axes.edgecolor"] = gray
    plt.rcParams["axes.spines.right"] = False
    plt.rcParams["axes.spines.top"] = False
    
    
    A = np.array([
      [10, -1, 0, 1],
      [0.2, 8, 0.2, 0.2],
      [1, 1, 2, 1],
      [-1, -1, -1, -11]])
    vals = np.linalg.eigvals(A)
    fig = plt.figure(figsize=(6, 4))
    for cont, val in enumerate(vals):
        real = np.real(val)
        imag = np.imag(val)
        center = A[cont, cont]
        radius = sum(np.abs(A[cont, k]) for k in range(4) if k != cont)
        circle = plt.Circle((center, 0), radius, color=yellow)
        plt.plot(real, imag, color=blue, marker="x", linewidth=0)
        plt.gca().add_artist(circle)
    
    plt.legend(["Eigenvalues"], frameon=False)
    plt.xlabel("Real axis")
    plt.ylabel("Imaginary axis")
    plt.yticks([-10, -5, 0, 5, 10])
    plt.axis("image")
    plt.xlim(-15, 15)
    plt.ylim(-10, 10)
    plt.savefig("Gershgorin Disk Theorem Example.svg", bbox_inches="tight")
    plt.show()
    

    ライセンス

    この作品の著作権者である私は、この作品を以下のライセンスで提供します。
    w:ja:クリエイティブ・コモンズ
    表示
    このファイルはクリエイティブ・コモンズ 表示 4.0 国際ライセンスのもとに利用を許諾されています。
    あなたは以下の条件に従う場合に限り、自由に
    • 共有 – 本作品を複製、頒布、展示、実演できます。
    • 再構成 – 二次的著作物を作成できます。
    あなたの従うべき条件は以下の通りです。
    • 表示 – あなたは適切なクレジットを表示し、ライセンスへのリンクを提供し、変更があったらその旨を示さなければなりません。これらは合理的であればどのような方法で行っても構いませんが、許諾者があなたやあなたの利用行為を支持していると示唆するような方法は除きます。

    キャプション

    このファイルの内容を1行で記述してください
    Gershgorin disk theorem example.

    このファイルに描写されている項目

    題材

    15 2 2019

    24,325 バイト

    b4cfb5026694413be1a2b67d909f81b1f4e04d0f

    ファイルの履歴

    過去の版のファイルを表示するには、その版の日時をクリックしてください。

    日時サムネイル寸法利用者コメント
    現在の版2019年2月15日 (金) 20:442019年2月15日 (金) 20:44時点における版のサムネイル503 × 344 (24キロバイト)wikimediacommons>NicoguaroUser created page with UploadWizard

    このファイルを使用しているページはありません。