diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /671/CH2/EX2.3/2_3.sce | |
download | Scilab-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-x | 671/CH2/EX2.3/2_3.sce | 21 |
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 |