summaryrefslogtreecommitdiff
path: root/671/CH2/EX2.3/2_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /671/CH2/EX2.3/2_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
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