summaryrefslogtreecommitdiff
path: root/2231/CH1/EX1.6
diff options
context:
space:
mode:
Diffstat (limited to '2231/CH1/EX1.6')
-rwxr-xr-x2231/CH1/EX1.6/Ex_1_6.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2231/CH1/EX1.6/Ex_1_6.sce b/2231/CH1/EX1.6/Ex_1_6.sce
new file mode 100755
index 000000000..af17d7c64
--- /dev/null
+++ b/2231/CH1/EX1.6/Ex_1_6.sce
@@ -0,0 +1,14 @@
+//Example 1_6
+clc;
+clear;close;
+
+//Given data
+Vdc=100;//V
+R=10;//ohm
+L=5;//H
+i=50*10^-3;//A
+
+//Solution :
+//i=Vdc/R*(1-exp(-R*t/L))
+t=-log(1-i/Vdc*R)/R*L;//s
+disp("Minimum width of gate pulse is "+string(t*1000)+" milli-seconds.");