On `deep=True` go through all of the expression tree, not only the functions.
You can merge this Pull Request by running: git pull https://github.com/Krastanov/sympy trigsimp_deep Or you can view, comment on it, or merge it online at: https://github.com/sympy/sympy/pull/1374 -- Commit Summary -- * trigsimp traverses not only function but any Basic objects. * In simplify call trigsimp(deep=True) -- File Changes -- M sympy/simplify/simplify.py (11) M sympy/simplify/tests/test_simplify.py (8) -- Patch Links -- https://github.com/sympy/sympy/pull/1374.patch https://github.com/sympy/sympy/pull/1374.diff --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1374 -- You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patches@googlegroups.com. To unsubscribe from this group, send email to sympy-patches+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en.