summaryrefslogtreecommitdiff
path: root/1511/CH2/EX2.39/ex2_39.sce
diff options
context:
space:
mode:
Diffstat (limited to '1511/CH2/EX2.39/ex2_39.sce')
-rwxr-xr-x1511/CH2/EX2.39/ex2_39.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1511/CH2/EX2.39/ex2_39.sce b/1511/CH2/EX2.39/ex2_39.sce
new file mode 100755
index 000000000..6b91008ee
--- /dev/null
+++ b/1511/CH2/EX2.39/ex2_39.sce
@@ -0,0 +1,13 @@
+// Example 2.39 page no-127
+clear
+clc
+x=99.5 *10^3 //Ohm (R1+R2)
+rm=0.56 *10^3 //Ohm
+v1=20 //V
+i=v1/x
+i=0.0002 //aproxximated to
+k=16/i
+R1=k-rm
+R2=x-R1
+
+printf("\nR1=%.1f K-ohm\nR2=%.1f K-ohm",R1/1000,R2/1000)