-1
$\begingroup$

I would like to use NDSolve to draw the integral curve of a third-order ODE

s = NDSolve[{y'''[x] - x y[x] == 0, y[0] == 1, y'[0] == 0, y''[0] == 1}, y, {x, -4, 4}]

but it does not seem possible.

$\endgroup$
3
  • $\begingroup$ Your code worked for me at Mma 10.0.2, win7. $\endgroup$ Feb 2, 2015 at 14:51
  • $\begingroup$ What went wrong? Did you get any error messages? What version of Mathematica are you running and on what system? $\endgroup$
    – m_goldberg
    Feb 2, 2015 at 14:58
  • $\begingroup$ Thanks for your answers. Finally it works... $\endgroup$
    – Bazin
    Feb 7, 2015 at 11:43

1 Answer 1

1
$\begingroup$

I'm running V10.0.2 on OS X 10.6.8. Your code works fine of my system.

s = NDSolve[{y'''[x] - x y[x] == 0, y[0] == 1, y'[0] == 0, y''[0] == 1}, y, {x, -4, 4}];
Plot[s[[1, 1, 2]][x], {x, -4, 4}]

plot

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.