apply_to_variables(f, ex) replaces every variable in ex (anything
declared with Variable(), Parameter(), independent_variable() and
the like) by f(variable) and rebuilds the expression. Derivatives keep
their independent variable.
apply_to_variables(f, ex) replaces every variable in ex (anything
declared with Variable(), Parameter(), independent_variable() and
the like) by f(variable) and rebuilds the expression. Derivatives keep
their independent variable.