diff options
Diffstat (limited to '257/CH2/EX2.8/example_2_8.sce')
-rw-r--r-- | 257/CH2/EX2.8/example_2_8.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/257/CH2/EX2.8/example_2_8.sce b/257/CH2/EX2.8/example_2_8.sce new file mode 100644 index 000000000..b6b9161c0 --- /dev/null +++ b/257/CH2/EX2.8/example_2_8.sce @@ -0,0 +1,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)=")
\ No newline at end of file |