I believe this is a little problem that everybody asking or answering ODE related question in this site suffers.
We know derivative of a variable, say, f
, can be inputted as
f'
But once the f'
is executed, or we just keystrokes Ctrl+Shift+n to convert it to StandardForm
, it'll become
Convert it to InputForm
by Ctrl+Shift+i, or copy and paste it to this site or any text editor, what we obtain is
Derivative[1][f]
Not too bad, but still less concise compared to f'
. What's the simplest way to convert it back to f'
?
Ideally, can we modify the behavior of Convert to InputForm
?
f'
above is just an example. I'm expecting a solution that handles Derivative[n][f]
where n
is an integer, of course.
n=5
? $\endgroup$f'''''
:) Well, I know it no longer looks good, but extremely high order derivative doesn't come up often when dealing with ODEs. And I think it won't be too hard to limit the solution to e.g.n<=4
case, if we can figure out one? $\endgroup$