tschijnmo / drudge

CAS based on sympy focusing on tensor and noncommutative algebras
https://tschijnmo.github.io/drudge
MIT License
21 stars 10 forks source link

Simultaneous batch substituions for Tensor.subst_all #11

Closed chenpeizhi closed 5 years ago

chenpeizhi commented 5 years ago

A new a argument, simult_all, is added to Tensor.subst_all, which facilitates substituting with all TensorDef instances in a list independently of their order. By default, simult_all is set to be false, so the new feature does not affect existing drudge functionalities. Tests are added, which can also serve as code examples.

This PR also fixes a failed test arising from a sympy limitation of simplifying expressions involving Wigner symbols.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.02%) to 86.839% when pulling 875ae465d353b1a9d67e5d2930af6e67eeac2fbd on chenpeizhi:master into fc0be911c7968f0a12c275f0d0361cee35c3bbf9 on tschijnmo:master.