Plot using DSolve HELP
- To: mathgroup at smc.vnet.net
- Subject: [mg104388] Plot using DSolve HELP
- From: "Becky" <noslowski at comcast.net>
- Date: Fri, 30 Oct 2009 02:17:29 -0500 (EST)
I have a problem with what I am showing below. Step one is my equation. eq = i * v[t]/r +c v'[t] Step two I want to solve it, using DSolve, and put my values in as shown. Please note, that "i= 0", and my IC is v[0]== -70. sol=v[t]/.DSolve[{eq/.{c->3, i->0, r->2.5} ,v[0]==-70}, v[t], t] {-70 *-0.133333 t} The results are shown above. Thus next step is to plot it. p1=Plot[sol,{t,-20,140}] My problem is that I get a line from -70 on the vertical axis going in a curve up to the horizontal axis out to 140. The vertical axis is "v" and the horizontal is "t". What am I doing wrong? Thanks Jake
- Follow-Ups:
- Re: Plot using DSolve HELP
- From: Patrick Scheibe <pscheibe@trm.uni-leipzig.de>
- Re: Plot using DSolve HELP