summaryrefslogtreecommitdiff
path: root/995/CH3/EX3.10/Ex3_10.sce
blob: e2787fe1affef9c3fbf0c0e57fabc651546d6445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Ex:3.10
clc;
clear;
close;
c=100*10^-6;//in farads
r=1*10^3;//in ohms
t1=50*10^-3;//in sec.
t2=100*10^-3;//in sec.
V_s=350;//in volts
i1=(V_s/1000)*(%e^(-t1/(r*c)));
i2=(V_s/1000)*(%e^(-t2/(r*c)));
printf("Charging current after %f sec = %f A",t1,i1);
printf("\n Charging current after %f sec = %f A",t2,i2);