Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5798
| From | Jonathan Frazer <J.Frazer@sussex.ac.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Defining a variable from an error message (NDSolve::ndsz) |
| Date | 2011-10-22 10:20 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j7u5do$27$1@smc.vnet.net> (permalink) |
Hi Everyone,
Using the example from the NDSolve::ndsz section in the documentation centre, evaluating
NDSolve[{(2 - f[x]) f'[x] == f[x], f[0] == 1}, f, {x, 0, 5}]
gives the error message
"NDSolve:ndsz : At x == 0.38629402687577696`, step size is effectively zero; singularity or stiff system suspected".
What I would like to do is be able to automatically define a variable xdanger = 0.38629402687577696 so that I can use it in a subsequent part of the code.
Does anyone have a suggestion for how I might do this?
Many thanks,
Jonny
P.S. In similar problems I usually can make use of Check one way or another but in this case I want to be able to use the variable xdanger to make an inequality. For this reason, I don't think Check is applicable.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Defining a variable from an error message (NDSolve::ndsz) Jonathan Frazer <J.Frazer@sussex.ac.uk> - 2011-10-22 10:20 +0000
csiph-web