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
# ======================================================================
评论列表
文章目录