# # Numerical Mathematics and Computing, Fifth Edition # Ward Cheney & David Kincaid # Brooks/Cole Publ. Co. # (c) 2003 # # file: ode2 # # Numerical solution to the initial value problem # x' = 1+x^2+t^3, with initial condition x(1)= -4: ode := D(x)(t) = 1 + x(t)^2 + t^3; f := dsolve({ode, x(1) = -4}, x(t), numeric); f(1); f(2);