Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Tracking Simple Changes' topicStudent Support Forum > General > "Tracking Simple Changes"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Tracking Simple Changes')
Author Date Posted
Tracking Simple Changes William Duhe 11/12/12 4:48pm
Re: Tracking Simple Changes Nasser M. Ab... 11/12/12 8:39pm
Re: Re: Tracking Simple Changes William Duhe 11/16/12 4:30pm
Next Comment >Help | Reply To Topic