From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 147/CH2/EX2.4/Example2_4.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 147/CH2/EX2.4/Example2_4.sce (limited to '147/CH2/EX2.4/Example2_4.sce') diff --git a/147/CH2/EX2.4/Example2_4.sce b/147/CH2/EX2.4/Example2_4.sce new file mode 100644 index 000000000..6db7c40e2 --- /dev/null +++ b/147/CH2/EX2.4/Example2_4.sce @@ -0,0 +1,14 @@ +//Resistance R, Voltage V, Current I +close(); +clear; +clc; +R1 = 5;//ohm +R2 = 15; +R3 = 5; +R4 = 4; +R5 = 12; +V5 = 132;//V +I = V5/R5; +I1 = (R1+R2)/(R1+R2+R3)*I; +I2 = R3/(R1+R2+R3)*I; +mprintf('I1 = %0.1f A\nI2 = %0.1f A',I1,I2); \ No newline at end of file -- cgit