Runge-Kutta method for $y'(x)= \sin(y)$ with $y(0)=1$

245 Views Asked by At

I have the following IVP, which I need to solve using Runge-Kutta methods.

$$y'(x)= \sin(y), \qquad y(0)=1$$

The range is $[0,1]$. My problem is that I need to choose the step size $h$ such that the error will be in order of $0.0001$. How do I choose the right $h$ for the required error?