Setting terms of specific powers in a sympy expression to zero

后端 未结 0 512
抹茶落季
抹茶落季 2021-02-10 07:05

I have a sympy expression of the following form:

a, b = symbols(\'a b\')
expr = a + a/b + a/b**2 + a**2/b**2 + a/b**3

I want to set any terms whe

相关标签:
回答
  • 消灭零回复
提交回复
热议问题