File:Mplwp complete ellipticPi nfixed k.svg

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(SVG文件,尺寸为600 × 400像素,文件大小:38 KB)


摘要

描述
English: Plot of the Legendre Complete elliptic integral of the third kind Π(n, k) plotted against k in the interval [0, 1] with fixed values of n:
日期
来源 自己的作品
作者 Geek3
SVG开发
InfoField
 
SVG的源代码为有效代码
 
矢量图使用mplwp, the Matplotlib extension for Wikipedia plots创作。
源代码
InfoField

mplwp source code

The plot was generated with mplwp 1.0
#!/usr/bin/python
# -*- coding: utf8 -*-

import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
from math import *

code_website = 'http://commons.wikimedia.org/wiki/User:Geek3/mplwp'
try:
    import mplwp
except ImportError, er:
    print 'ImportError:', er
    print 'You need to download mplwp.py from', code_website
    exit(1)

name = 'mplwp_complete_ellipticPi_nfixed_k.svg'
fig = mplwp.fig_standard(mpl)

xlim = 0, 1; fig.gca().set_xlim(xlim)
ylim = 0, 6; fig.gca().set_ylim(ylim)
mplwp.mark_axeszero(fig.gca())

from mpmath import ellippi
from scipy.optimize import brentq

for i, n in enumerate([0.5, 0, -1, -3, -10]):
    xmax = brentq(lambda xx: ellippi(n, xx**2) - ylim[1], 0, 1)
    x = xlim[0] + (xmax - xlim[0]) * (1-(np.linspace(1, 0, 5001))**2)
    y = [ellippi(n, xx**2) for xx in x]
    if y[-1] < ylim[1] - 1e-6:
        y[-1] = ylim[1]
    plt.plot(x, y, zorder=-i,
        label=r'$\Pi(n={:g},\ k)$'.format(n).replace('-', u'\u2212'))

plt.xlabel('k')
plt.gca().xaxis.set_label_coords(1.05, 0.06)
plt.legend(loc='upper left').get_frame().set_alpha(0.9)
plt.savefig(name)
mplwp.postprocess(name)

参看

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
GNU head 已授权您依据自由软件基金会发行的无固定段落及封面封底文字(Invariant Sections, Front-Cover Texts, and Back-Cover Texts)的GNU自由文件许可协议1.2版或任意后续版本的条款,复制、传播和/或修改本文件。该协议的副本请见“GNU Free Documentation License”。
w:zh:知识共享
署名
本文件采用知识共享署名 3.0 未本地化版本许可协议授权。
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
您可以选择您需要的许可协议。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2015年2月8日 (日) 16:352015年2月8日 (日) 16:35版本的缩略图600 × 400(38 KB)Geek3complete_ellipticPi_nfixed_k plot by Geek3

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件:

元数据