summaryrefslogtreecommitdiff
path: root/671/CH2/EX2.3/2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '671/CH2/EX2.3/2_3.sce')
-rwxr-xr-x671/CH2/EX2.3/2_3.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/671/CH2/EX2.3/2_3.sce b/671/CH2/EX2.3/2_3.sce
new file mode 100755
index 000000000..098843cd6
--- /dev/null
+++ b/671/CH2/EX2.3/2_3.sce
@@ -0,0 +1,21 @@
+r1=100
+v=3/4
+
+r2=r1*v/(1-v)
+
+
+function p=parallel(r1,r2)
+ p=r1*r2/(r1+r2)
+endfunction
+
+//////Part1
+R2_eq=parallel(r2,10000)
+k=R2_eq/(R2_eq+r1)
+change1=(3/4-k)/(3/4)*100
+disp(change1)
+//////Part2
+
+R2_eq=parallel(r2,1000)
+k=R2_eq/(R2_eq+r1)
+change2=(3/4-k)/(3/4)*100
+disp(change2) \ No newline at end of file