ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 24 May 2022 19:26:51 +0200symbolic functions and expressionshttps://ask.sagemath.org/question/62622/symbolic-functions-and-expressions/ Suppose I have a huge expression involving symbolic variables and symbolic functions. Is there a way to get the symbolic functions involved in my expression? Something like `.variables()`.
For example:
f(x) = function('f')(x)
h(x) = function('h')(x)
Y(l,m,x,y) = spherical_harmonic(l,m,x,y)
A = f(x)*x^2 + x^diff(h(x),x) + h(x)*Y(l,m,x,y)
`A.desired_function()` should return `(f(x), h(x), diff(h(x),x), Y(l,m,x,y))`. Or, at least `(f(x), h(x), diff(h(x),x))`. I was not able to find such function nor figure out a way build up one.Tue, 24 May 2022 19:26:51 +0200https://ask.sagemath.org/question/62622/symbolic-functions-and-expressions/