summaryrefslogtreecommitdiff
path: root/3504/CH2/EX2.19
diff options
context:
space:
mode:
Diffstat (limited to '3504/CH2/EX2.19')
-rw-r--r--3504/CH2/EX2.19/Ex2_19.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3504/CH2/EX2.19/Ex2_19.sce b/3504/CH2/EX2.19/Ex2_19.sce
new file mode 100644
index 000000000..b0e4f729f
--- /dev/null
+++ b/3504/CH2/EX2.19/Ex2_19.sce
@@ -0,0 +1,9 @@
+//To write the KVL equation and obtain the voltage across the capacitor C for the given parameters.
+clc;
+Z=[5-%i*5 5+%i*3;5+%i*3 10+%i*6]
+D=det(Z)
+Z_1=[10 5+%i*3;10-%i*10 10+%i*6]
+D_1=det(Z_1)
+I_1=D_1/D
+V=I_1*(-%i*10)
+disp(V,'Voltage across the capacitor C(Volts)')