Group Abstract Group Abstract

Message Boards Message Boards

NDSolve doesn't produce a smooth curve

Posted 1 year ago

I was solving a parallel RLC circuit with NDSolve, for some reason, it doesn't give a smooth curve. Any suggestions? Thank you!

eqn = c v''[t] + v'[t]/r + v[t]/l == 
    128000 Cos[6400 t + Pi/2] /. {r -> 50, l -> 10, c -> 1/640};
cond = {v[0] == 5, v'[0] == 11456};
sol4 = NDSolveValue[{eqn, cond}, v, {t, 0, 0.6}]
Plot[sol4[t], {t, 0, 0.6}, PlotRange -> All] 

enter image description here

enter image description here

POSTED BY: Xiangyang Zhou
Posted 1 year ago
POSTED BY: Bill Nelson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard