summaryrefslogtreecommitdiff
path: root/257/CH2/EX2.8/example_2_8.sce
blob: b6b9161c0ddf97767664a8b8ec9123115a86c717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// using KVL we get i(t)*R + 1/C * int(i(t)) = v(t)

// taking laplace transform V(s)= I(s)*R + 1/C * (I(s)/s)

R=10^6
C=10^-6

s=%s;

F=1/R*(1/(s + (1)/(R*C)));
disp(F)

syms t s;
y=ilaplace(F,s,t);
disp(y,"i(t)=")