Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14828
| From | "Kevin J. McCann" <kjm@KevinMcCann.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: problems with NDSolve |
| Date | 2013-06-13 06:31 +0000 |
| Message-ID | <kpbovj$95b$1@smc.vnet.net> (permalink) |
| References | <kp9epj$2sr$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
You will probably get a lot of replies to this:
1) Sin, Cos, Tan, Sqrt all start with a capital letter.
2) you have an undefined variable r. In a numerical calculation,
everything except the things you are solving for must be numerical.
Hope this helps.
Kevin
On 6/12/2013 5:25 AM, Axel Sielaff wrote:
> Hi,
>
> I'm new in Mathematica and have a problem you can maybe help me with. I try to solve the differential equation given by T. G. Myers and J. P. F. Charpin (http://dx.doi.org/10.1063/1.3155185) as follows:
>
> rho = 1700
> g = 9.81
> sigma = 0.00001
> c = rho g / sigma
> z0 = 0.1
> sol = NDSolve[{x'[t] ==
> c (z0 - z[t]) - tan[x[t]]/(r Sqrt[1 + tan[x[t]]^2]) ,
> y'[t] == cos[x[t]], z'[t] == sin[x[t]], x[0] == 0.0001, y[0] == 0,
> z[0] == 0}, {x[t], y[t], z[t]} , {t, 0, 1} ]
>
> I get this result and don't know what to do.
>
> NDSolve::ndnum: Encountered non-numerical value for a derivative at t == 0.`. >>
> NDSolve[{Derivative[1][x][
> t] == -(tan[x[t]]/(r Sqrt[1 + tan[x[t]]^2])) +
> 1.6677*10^9 (0.1 - z[t]), Derivative[1][y][t] == cos[x[t]],
> Derivative[1][z][t] == sin[x[t]], x[0] == 0.0001, y[0] == 0,
> z[0] == 0}, {x[t], y[t], z[t]}, {t, 0, 1}]
>
> Do you have any ideas?
> Thanks
>
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
problems with NDSolve Axel Sielaff <axel.sielaff@googlemail.com> - 2013-06-12 09:25 +0000 Re: problems with NDSolve "Kevin J. McCann" <kjm@KevinMcCann.com> - 2013-06-13 06:31 +0000
csiph-web