summaryrefslogtreecommitdiff
path: root/3754/CH4/EX4.11/4_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH4/EX4.11/4_11.sce')
-rw-r--r--3754/CH4/EX4.11/4_11.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3754/CH4/EX4.11/4_11.sce b/3754/CH4/EX4.11/4_11.sce
new file mode 100644
index 000000000..c8845b79f
--- /dev/null
+++ b/3754/CH4/EX4.11/4_11.sce
@@ -0,0 +1,19 @@
+clear//
+
+//Variables
+
+V = 12.0 //Voltage (in volts)
+R1 = 4.0 //Resistance (in ohm)
+R2 = 6.0 //Resistance (in ohm)
+R3 = 12.0 //Resistance (in ohm)
+
+//Calculation
+
+Req = 1/(1/R1 + 1/R2 + 1/R3) //Equivalent resistance (in ohm)
+I1 = V/R1
+I2 = V/R2
+I3 = V/R3
+
+//Result
+
+printf("\n The Equivalent Resistance is %0.3f ohm.\nThe Current through R1 , R2 , R3 are %0.3f A, %0.3f A, %0.3f A.",Req,I1,I2,I3)