test_symbolic_utils.py 文件源码

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

项目:vadouvan 作者: vadouvan 项目源码 文件源码
def test_one_variable(self):
        """
        It can eliminate ``x`` from the system ``(a = x, b = x)``.
        """
        equations = [sympy.Eq(a, x), sympy.Eq(b, x)]
        new_equations = vadouvan.symbolic_utils.eliminate(equations, [x])
        assert len(new_equations) == 1
        assert new_equations[0].free_symbols == {a, b}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号