test_cyl_innerproducts.py 文件源码

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

项目:discretize 作者: simpeg 项目源码 文件源码
def sol(self):
        # Do the inner product! - we are in cyl coordinates!
        j, Sig = self.fcts()
        jTSj = j.T*Sig*j
        # we are integrating in cyl coordinates
        ans  = sympy.integrate(sympy.integrate(sympy.integrate(r * jTSj,
                                                               (r, 0, 1)),
                                               (t, 0, 2*sympy.pi)),
                                (z, 0, 1))[0] # The `[0]` is to make it an int.

        return ans
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号