This question already has an answer here:
- Extracting variables from an expression 5 answers
From an expression describing a mathematical function, I would like to extract its parameters.
For example, from the expression
4 Sin[2 a x^2 + b x + c], assuming that
x is the function variable, I would like to have
I tried using patterns with
FixedPoint and the
TreeForm to select the leaves with heads corresponding to
x), but unfortunately unsuccessfully.