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


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

Plot artifact of NDSolve result

From Bert RAM Aerts <bert.ram.aerts@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Plot artifact of NDSolve result
Date 2011-02-02 11:07 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iibdt9$no5$1@smc.vnet.net> (permalink)

Show all headers | View raw


Both in Mathematica 8.0.0 and 7.0.1 the plot of NDSolve result is
wrong near x-axis point 60. But when zooming in, plot is correct.

Notebook and screenshot of result are available on http://users.skynet.be/fa991376/

eqn4 = y''[t] == -y[t]^2 + t

sol4 = NDSolve[{eqn4, y[0] == 0, y'[0] == 1}, y, {t, 0, 70},
  WorkingPrecision -> 20, MaxStepSize -> 0.01]

Below plot contains the artifact:

Plot[Evaluate[{y[t], y'[t], y''[t]} /. sol4], {t, 0, 70},
 PlotRange -> All]

Below plot is correct:

Plot[Evaluate[{y[t], y'[t], y''[t]} /. sol4], {t, 50, 70},
 PlotRange -> All]

Is there a way to avoid this?

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Plot artifact of NDSolve result Bert RAM Aerts <bert.ram.aerts@gmail.com> - 2011-02-02 11:07 +0000

csiph-web