diff options
Diffstat (limited to '3673/CH2/EX2.15/Ex2_15.sce')
-rw-r--r-- | 3673/CH2/EX2.15/Ex2_15.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/3673/CH2/EX2.15/Ex2_15.sce b/3673/CH2/EX2.15/Ex2_15.sce new file mode 100644 index 000000000..b221bf375 --- /dev/null +++ b/3673/CH2/EX2.15/Ex2_15.sce @@ -0,0 +1,11 @@ +//Example 2_15 page no:81
+clc
+//applying kirchoff law to node 1
+R5=5//resistance in ohm
+V=10//source voltge
+resistance=[0.83,-0.5,0;-0.5,1.5,0.7;0.01,1,-1]
+current=[10,2,20]
+volt=inv(resistance)'*current'//calculating V1 V2 V3
+I3=(volt(3,1)-8.8)/R5
+disp(I3,"current flowing through 5 ohm resistor is (in ampere)")
+disp("negative sign indicate flow of current in opposite direction")
|