Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'substitution problem (please help)' topicStudent Support Forum > General > "substitution problem (please help)"

Next Comment >Help | Reply To Topic
Author Comment/Response
Terry
07/27/07 1:46pm

How can I fix the problem here without having to put all the differential equations from the first line into the second line?

ode={y'[t]==-100k y[t]+650k,y[0]==20};
mySol[k_]:=NDSolve[Evaluate[ode],y,{t,0,20}]
mySol[1]

It appears I cannot substitute k unless it is explicitly on the right side of the equation. I tried to evaluate the term ode to see if it understands it but this didn't work. Is there another workaround?

URL: ,

Subject (listing for 'substitution problem (please help)')
Author Date Posted
substitution problem (please help) Terry 07/27/07 1:46pm
Re: substitution problem (please help) Gopinath Ven... 07/30/07 1:53pm
Re: substitution problem (please help) yehuda ben-s... 07/30/07 5:45pm
Re: substitution problem (please help) yehua ben-sh... 07/31/07 01:14am
Re: substitution problem (please help) Forum Modera... 07/31/07 06:08am
Next Comment >Help | Reply To Topic