I am trying to convert Mathematica output into equations I can plug into C. I am presently trying to convert expressions of the form
where f is function with an arbitrary name (e.g. it may be called f, g, func, etc), into expressions of the form
where f is the symbol for the original function, e.g. I want the general rule to map Derivative[1,0,0][g][t,x,y] to g_Dt as well. Is there a way of doing this? For example, applying
(where "expression" is arbitrary) doesn't work.
To expand the scope of this question, more generally I would like to transform
to not just f_Dt, but also expressions like
(i.e. expressions that don't just include the underscore after f).