Demo entry 6353872

costam

   

Submitted by anonymous on Apr 03, 2017 at 19:08
Language: Scilab. Code size: 150 Bytes.

function ydot=f(t, y, R, C)
    ydot=-1/(R*C)*y+250*cos(25*t);
endfunction
y0=3;
t0=0;
t=0:0.1:10;
R=500;
C=100*10^(-6)
y = ode(y0,t0,t,f);
plot(t,y)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).