| Author |
Comment/Response |
William Duhe
|
11/12/12 4:48pm
lambda = 0.001
i = -100;
f = 10000;
s = NDSolve[{x'[t] == lambda, x[0] == 0}, x, {t, i, f}]
Plot[Evaluate[{x[t]} /. s], {t, i, f}, PlotStyle -> Automatic]
tf = FindRoot[x[t] == 1 /. s, {t, #}] & /@ {f, i}
What I want is very simple. I want to track how tf changes if I vary lambda and plot it. So something along the lines of plot[tf[lamda],{t,i,f}].
Whats the simplest way to make this happen? I was thinking of embedding it in a manipulate function.
URL: , |
|