Sympy: Get Functions From Expression
To get all variables from a sympy expression, one can call .free_symbols on the expression. I would like to retrieve all functions used in an expression. For example, from y in fro
Solution 1:
atoms
does the trick:
for f in y.atoms(Function):
print(f.func)
Post a Comment for "Sympy: Get Functions From Expression"