orthopoly.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:pyballd 作者: Yurlungur 项目源码 文件源码
def get_norm2_difference(foo,bar,xmin,xmax):
    """
    Returns sqrt(integral((foo-bar)**2)) on the interval [xmin,xmax]
    """
    out = integrator(lambda x: (foo(x)-bar(x))**2,xmin,xmax)[0]
    out /= float(xmax-xmin)
    out = np.sqrt(out)
    return out
# ======================================================================


# ======================================================================
# Nodal and Modal Details
# ======================================================================
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号