Python - 如何计算轮廓中的整数?

时间:2017-05-05 12:34:58

标签: python numpy integration contour

我正在尝试用Python确定轮廓积分。 有没有人有这方面的经验?我试着在轮廓上计算出来" Gamma" (图中位于下方):

enter image description here

我的数据在这里:

import numpy as np
import matplotlib.pyplot

#definition of position point
theta = np.linspace(0, 2*np.pi, 10)
r = 1
x1= r*np.cos(theta)
x2 = r*np.sin(theta)

plt.plot(x1, x2, 'k-',linewidth=5)

#quantities A and B
A = np.array([ 0.24872107,  0.3806164 ,  0.30198209,  0.14252744,  0.02832797,
        0.04871077,  0.03160013,  0.13847697,  0.29831411,  0.32951613])

B = np.array([ 0.26101962,  0.56653762,  0.00908769, -0.05911249,  0.03449575,
        0.04463307,  0.0333772 ,  0.34940976,  0.54600592,  0.14270376])

上面的等式,图中显示了问题。

enter image description here

0 个答案:

没有答案
相关问题