Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. Reap@
  2. NDSolve[{(2 - f[x]) f'[x] == f[x], f[0] == 1,
  3. WhenEvent[Abs[f'[x]] > 10^6, Sow[x]; "StopIntegration"]}, f, {x, 0, 5}]
  4. (* {{{f -> InterpolatingFunction[{{0., 0.386294}}, <>]}}, {{0.386294}}} *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement