computer-algebra-systems

How to do function composition in Sympy?

How to do function composition in Sympy? Question: I want to do something like h = f(g(x)) and be able to differentiate h, like h.diff(x). For just one function like h = cos(x) this is in fact possible and the documentation makes it clear. But for function compositions it is not so clear. If you …

Total answers: 2