I want to run some programs written in Mathematica 5 and 6 using Mathematica 9 or 10. Some DSolve functions don’t work in 9 or 10 but do in 6 (if written in 6). Are there legacy packages for 9 or 10?
This is from “Computer Solutions in Physics” by Steve VanWyk, Chapter 4.5
If you will not follow the tutorial, other members of community may not be able to test your code. To edit your post click Edit in the lower right corner of your post.
If you plug this into DSolve, it won’t run. DSolve is for symbolic solutions of differential equations and this equation uses floating point numbers. Floating point numbers really don’t obey the normal rules of algebra, so we can’t often get DSolve to work with them. One quick trick is to turn the floating point numbers into rational numbers using the Rationalize function:
Really, if you are not actually interested in the symbolic solution and want to use floating point number, you may want to use NDSolve instead of DSolve.