s = NDSolve[{f'''[eta] + 0.5*f[eta]*f''[eta] == 0.0, f[0] == 0.0,
f'[0] == 0.0, f'[Infinity] = 1.0}, f, {eta, 0, 1}];
Plot[Evaluate[f[eta] /. s], {eta, 0, 1}, PlotRange -> All]
I don't understand why this doesn't work. I followed exactly the instructions from the site. I get the following error (among others)
NDSolve::deqn: Equation or list of equations expected instead of 1.` in the first argument
f'[Infinity] == 1.0
but still error will occur with thisInfinity
I guess! $\endgroup$=
for your boundary condition at infinity. Changing it to a double equal (==
) will help (as long as you quit the kernel). However, you need to define the boundary conditions within the region of integration, ie. betweeneta=0
and1
. Otherwise the algorithm doesn't know what value off'[eta]
to start iterating with. $\endgroup$