def evaluate(self, F, xo, yo, s):
return (F / 4 *
((erf((self.x - xo + 0.5) / (np.sqrt(2) * s)) -
erf((self.x - xo - 0.5) / (np.sqrt(2) * s))) *
(erf((self.y - yo + 0.5) / (np.sqrt(2) * s)) -
erf((self.y - yo - 0.5) / (np.sqrt(2) * s)))))
评论列表
文章目录