summaryrefslogtreecommitdiff
path: root/3809/CH1/EX1.5/EX1_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH1/EX1.5/EX1_5.sce')
-rw-r--r--3809/CH1/EX1.5/EX1_5.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3809/CH1/EX1.5/EX1_5.sce b/3809/CH1/EX1.5/EX1_5.sce
new file mode 100644
index 000000000..2ba00a689
--- /dev/null
+++ b/3809/CH1/EX1.5/EX1_5.sce
@@ -0,0 +1,18 @@
+//Chapter 1, Example 1.5
+
+clc
+//Initialisation
+r1=10 //resistance in ohm
+r2=20 //resistance in ohm
+r3=15 //resistance in ohm
+r4=25 //resistance in ohm
+
+
+
+
+//Calculation
+r=r1+r2+r3+r4 //resistance in ohm
+
+
+//Results
+printf("Equivalent Resistance, R = %d Ohm",r)