Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4514
| From | Gabriel Landi <gtlandi@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: NDSolve with square root |
| Date | 2011-08-21 09:38 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j2qjm0$d2o$1@smc.vnet.net> (permalink) |
| References | <201108201016.GAA04950@smc.vnet.net> |
You can try
NDSolve[{(x'[t])^2 == 1 - x[t], x[2.1] == 0.9975`}, x, {t, -5, 5},
SolveDelayed -> True];
Plot[{(1/4) (4 t - t^2), x[t] /. %}, {t, -5, 5}]
It at least doesn't complain. But from the plot you can still see some deviation from the exact solution.
Gabriel
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: NDSolve with square root Gabriel Landi <gtlandi@gmail.com> - 2011-08-21 09:38 +0000
csiph-web