NDSolve[{"a"''[t] + "a"[t] == 0, "a"'[0] == 0, "a"[0] == 1}, "a", {t, 0, 10}]
This code works in Mathematica 10 and below but in Mathematica 11, I got the error message:
NDSolve::dsfun: "a" cannot be used as a function.
Is this a bug or just the new limitation?
The reason I use string as function name is because it can avoid memory problem for using NDSolve
in Module
. See the question and answer here https://mathematica.stackexchange.com/a/78382/34148