Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7094
| From | Stephen Wandzura <smwandzura@hrl.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: NDSolve[] |
| Date | 2011-12-10 12:40 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jbvjvr$j4k$1@smc.vnet.net> (permalink) |
| References | <201112091058.FAA03928@smc.vnet.net> |
You are confusing Derivative[] with D[].
> Subject: NDSolve[]
> To: mathgroup@smc.vnet.net
>
> For the same equations, why does the first method as following give
> the error but the other one give the desired result?
>
> NDSolve[{Derivative[x[t], t] == -y[t] - x[t]^2,
> Derivative[y[t], t] == 2*x[t] - y[t], x[0] == y[0] == 1}, {x,
> y}, {t, 10}]
>
> NDSolve[{x'[t] == -y[t] - x[t]^2, y'[t] == 2*x[t] - y[t],
> x[0] == y[0] == 1}, {x, y}, {t, 10}]
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: NDSolve[] Stephen Wandzura <smwandzura@hrl.com> - 2011-12-10 12:40 +0000
csiph-web