Working with an Interpolating FunctionSolving a Differential EquationYou can use the built-in function SolveODE to solve differential equations. Since the ouput of SolveODE is an InterpolatingFunction, you can work with the output like any other interpolated function. Set the variable, desolution, to the SolveODE command.
Out[1]= |  |
Define a function, myDEFunction[x_], to be desolution 1, 1 .
Out[2]= |  |
You can evaluate myDEFunction at particular points.
Out[3]= |  |
Out[4]= |  |
You can also plot myDEFunction.
Clear myDEFunction when you are finished.
|