Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7102

Re: NDSolvie[]

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: NDSolvie[]
Date 2011-12-10 12:37 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jbvjr2$j2n$1@smc.vnet.net> (permalink)
References <201112091058.FAA03928@smc.vnet.net>

Show all headers | View raw


x'[t]//FullForm

Derivative[1][x][t]


D[x[t],t]//FullForm

Derivative[1][x][t]


soln1 = NDSolve[{
    Derivative[1][x][t] == -y[t] - x[t]^2,
    Derivative[1][y][t] == 2*x[t] - y[t],
    x[0] == y[0] == 1}, {x, y}, {t, 10}];

soln2 = NDSolve[{
    x'[t] == -y[t] - x[t]^2,
    y'[t] == 2*x[t] - y[t],
    x[0] == y[0] == 1}, {x, y}, {t, 10}];

soln3 = NDSolve[{
    D[x[t], t] == -y[t] - x[t]^2,
    D[y[t], t] == 2*x[t] - y[t],
    x[0] == y[0] == 1}, {x, y}, {t, 10}];

soln1 == soln2 == soln3

True


Bob Hanlon

> Z
> 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


Thread

Re: NDSolvie[] Bob Hanlon <hanlonr357@gmail.com> - 2011-12-10 12:37 +0000

csiph-web