diff options
Diffstat (limited to '269/CH4/EX4.1')
-rw-r--r-- | 269/CH4/EX4.1/ex1.jpg | bin | 0 -> 14226 bytes | |||
-rw-r--r-- | 269/CH4/EX4.1/ex1.sce | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/269/CH4/EX4.1/ex1.jpg b/269/CH4/EX4.1/ex1.jpg Binary files differnew file mode 100644 index 000000000..140381cd7 --- /dev/null +++ b/269/CH4/EX4.1/ex1.jpg diff --git a/269/CH4/EX4.1/ex1.sce b/269/CH4/EX4.1/ex1.sce new file mode 100644 index 000000000..d6579b140 --- /dev/null +++ b/269/CH4/EX4.1/ex1.sce @@ -0,0 +1,10 @@ +disp("chap 4")
+disp("ex 1")
+disp("the equation for current by kvl is")
+disp("i=v/r*(1-exp(-r*t/L))")// r-resistor,L-inductor
+v=3// assumed supply=5v
+r=10//assumed r=10 ohm
+L=500//assumed inductance=500henry
+t=0:0.1:500
+i=v/r*(1-exp(-r*t/L))
+plot(i)
\ No newline at end of file |