summaryrefslogtreecommitdiff
path: root/3809/CH1/EX1.6/EX1_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH1/EX1.6/EX1_6.sce')
-rw-r--r--3809/CH1/EX1.6/EX1_6.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3809/CH1/EX1.6/EX1_6.sce b/3809/CH1/EX1.6/EX1_6.sce
new file mode 100644
index 000000000..6a88d3e00
--- /dev/null
+++ b/3809/CH1/EX1.6/EX1_6.sce
@@ -0,0 +1,17 @@
+//Chapter 1, Example 1.6
+
+clc
+//Initialisation
+r1=10 //resistance in ohm
+r2=20 //resistance in ohm
+
+
+
+
+
+//Calculation
+r=(r1*r2)/(r1+r2) //resistance in ohm
+
+
+//Results
+printf("Equivalent Resistance, R = %.2f Ohm",r)