summaryrefslogtreecommitdiff
path: root/3526/CH17/EX17.4
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3526/CH17/EX17.4
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3526/CH17/EX17.4')
-rw-r--r--3526/CH17/EX17.4/EX17_4.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3526/CH17/EX17.4/EX17_4.sce b/3526/CH17/EX17.4/EX17_4.sce
new file mode 100644
index 000000000..a1709e71f
--- /dev/null
+++ b/3526/CH17/EX17.4/EX17_4.sce
@@ -0,0 +1,25 @@
+clc;funcprot(0);//EXAMPLE 17.4
+//page 531
+// Initialisation of Variables
+rho1=0.95;...........//Density of polyethylene in g/cm^3
+rho2=2.4;...........//Density of clay in g/cm^3
+f1=0.65;...............//Volume fraction of Polyethylene
+f2=0.35;...............//Volume fraction of Clay
+f3=1.67;.............//Volume fraction of polyethylene after sacrifice
+f4=1.06;.............//Volume fraction of Clay after sacrifice
+pa1=650;............// No. of parts of polyethylene in 1000cm^3 composite in cm^3
+pa2=350;............// No. of parts of clay in 1000cm^3 composite in cm^3
+//Calculations
+pa3=(pa1*rho1)/454;.........//No. of parts of Polyethylene in 1000cm^3 composite in lb
+pa4=(pa2*rho2)/454;.........//No. of parts of clay in 1000cm^3 composite in lb
+co1=pa3* 0.05;................//Cost of material Polyethylenein Dollars
+co2=pa4* 0.05;................//Cost of materials clay in Dollars
+c0=co1+co2;...................//Cost of materials in Dollars
+rho3=(f1*rho1)+(f2*rho2);.........//Composite density in g/cm^3
+co3=f3* 0.05;................//Cost of material polyethylene after savings in Dollars
+co4=f4* 0.05;................//Cost of material clay after savings in Dollars
+c1=co3+co4;.................//Cost of materials after savings in Dollars
+rho4=(0.8*rho1)+(0.2*rho2);..............//Density of composite after saving in g/cm^3
+disp(rho3,"Composite density in g/cm^3:")
+disp(rho4,"Composite densityafter saving in g/cm^3:")
+