If I have a sympy expression, g, that is a function of sympy symbols (say x, y, z, and t) how can I determine that g is not dependent on any other symbols. The context for this is that I wish to determine if I have a metric tensor that tensor is a function only of x, y, z, and t and not a fuction of any other symbols (for example spherical coordinates) so that I can know that if I substitute numerical values for x, y, z, and t all components of the metric tensor will be numbers that depend on no parameters.