summaryrefslogtreecommitdiff
path: root/3835/CH2/EX2.20/Ex2_20.sce
diff options
context:
space:
mode:
Diffstat (limited to '3835/CH2/EX2.20/Ex2_20.sce')
-rw-r--r--3835/CH2/EX2.20/Ex2_20.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3835/CH2/EX2.20/Ex2_20.sce b/3835/CH2/EX2.20/Ex2_20.sce
new file mode 100644
index 000000000..dde599768
--- /dev/null
+++ b/3835/CH2/EX2.20/Ex2_20.sce
@@ -0,0 +1,10 @@
+clear
+//
+//eqns are obtained from the figure and are solved for currents
+i1=6.89
+i2=3.89
+i3=-2.12
+i=2*(i2-i1)
+printf("\n current supplied by dependent source is= %0.1f A",i)
+power=6*i1
+printf("\n power supplied by voltage source is= %0.1f W",power)