I have obtained the following equations from Wolfram documentation.
sol = First[
NDSolve[{x'[t] == (1/4) x[t - τ]/ (1 + x[t - τ]^10) -
x[t]/10, x[t /; t <= 0] == 1/2}, x, {t, 0, 5000},
MaxSteps -> ∞]];
solrk = First[
NDSolve[{x'[t] == (1/4) x[t - τ]/ (1 + x[t - τ]^10) -
x[t]/10, x[t /; t <= 0] == 1/2}, x, {t, 0, 5000},
MaxSteps -> ∞,
Method -> {"ExplicitRungeKutta", "DifferenceOrder" -> 3}]];
ListPlot[Table[{t, RealExponent[(x[t] /. sol) - (x[t] /. solrk)]}, {t, 17, 5000, 17}]]
The same equation has been solved twice using two different methods and RealExponent[d]
has been plotted with respect to time. Here d
is the difference between x[t]
computed by the different methods.
My question is How to plot RealExponent[d]
with respect to τ
, where τ
can be varied from 14 to 40.