summaryrefslogtreecommitdiff
path: root/3754/CH5/EX5.13/5_13.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH5/EX5.13/5_13.sce')
-rw-r--r--3754/CH5/EX5.13/5_13.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3754/CH5/EX5.13/5_13.sce b/3754/CH5/EX5.13/5_13.sce
new file mode 100644
index 000000000..c56f6a7d2
--- /dev/null
+++ b/3754/CH5/EX5.13/5_13.sce
@@ -0,0 +1,16 @@
+clear//
+
+//Variables
+
+R1 = 5.0 //resistance (in ohm)
+R2 = 2.0 //resistance (in ohm)
+R3 = 3.0 //resistance (in ohm)
+
+//Calculation
+
+Req = R2 * R3 / (R2 + R3) //Equivalent resistance (in ohm)
+RL = R1 + Req
+
+//Result
+
+printf("\n Load resistance is %0.3f ohm.",RL)