summaryrefslogtreecommitdiff
path: root/995/CH3/EX3.15/Ex3_15.sce
blob: 1712d183bbd3ea3e75b34e307b0ce803d63bdf59 (plain)
1
2
3
4
5
6
7
8
9
10
//Ex:3.15
clc;
clear;
close;
L=6;//in henry
r=24;//in ohms
t=0.1;//in sec.
V_s=12;//in volts
i=(V_s/r)*(1-%e^(-t*r/L));
printf("current = %f A",i);