求助各位大佬

G=0.5 D=1.5 x=0:2 每0.0001取一个点 n=3到10

有没有大佬可以搞出这个函数图形

讨论数量: 2
Jason990420

There’s no value for \gamma, maybe following code work for you.

import numpy as np
import matplotlib.pyplot as plt

g   = 0.5
d   = 1.5
n1  = 3
n2  = 10 + 1
x1  = 0
dx  = 0.0001
x2  = 2 + dx
ga  = 2

x = np.arange(x1, x2, dx)[:, None]
n = np.arange(n1, n2)[None, :]
z = g**(d-1)*np.sum(np.cos(2*np.pi*ga**n*x)/(ga**((2-d)*n)), axis=1)

plt.plot(x, z)
plt.show()

LK

1个月前 评论
ping1_1 (楼主) 1个月前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!