yitriana Messages 35 Reaction score 0 Thread starter Mar 31, 2009 #1 NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}] i attempted this, but it didn't work.
NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}] i attempted this, but it didn't work.
isabelle Messages 30 Reaction score 0 Mar 31, 2009 #2 Try this: Code: sol1 = NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}]; Plot[y[x] /. sol1, {x, 0, 30}]
Try this: Code: sol1 = NDSolve[{y'[x] == y[x] Cos[x + y[x]], y[0] == 1}, y, {x, 0, 30}]; Plot[y[x] /. sol1, {x, 0, 30}]