summaryrefslogtreecommitdiff
path: root/3836/CH2/EX2.6/Ex2_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH2/EX2.6/Ex2_6.sce')
-rw-r--r--3836/CH2/EX2.6/Ex2_6.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3836/CH2/EX2.6/Ex2_6.sce b/3836/CH2/EX2.6/Ex2_6.sce
new file mode 100644
index 000000000..7d7d5033d
--- /dev/null
+++ b/3836/CH2/EX2.6/Ex2_6.sce
@@ -0,0 +1,13 @@
+clear
+//Initialisation
+r1=10 //resistance in ohm
+r2=20 //resistance in ohm
+
+
+
+//Calculation
+r=(r1*r2)*(r1+r2)**-1 //parallel resistance in ohm
+
+//Result
+printf("\n R = %.2f ohm",r)
+