diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1586/CH17/EX17.2/EX17_2.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '1586/CH17/EX17.2/EX17_2.sce')
-rw-r--r-- | 1586/CH17/EX17.2/EX17_2.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1586/CH17/EX17.2/EX17_2.sce b/1586/CH17/EX17.2/EX17_2.sce new file mode 100644 index 000000000..ab084227b --- /dev/null +++ b/1586/CH17/EX17.2/EX17_2.sce @@ -0,0 +1,17 @@ +clc;funcprot(0);//EXAMPLE 17.2
+// Initialisation of Variables
+per1=75;..............//Percent Weight of WC
+per2=15;..............//Percent Weight of TiC
+per3=5;...............//Percent Weight of TaC
+per4=5;...............//Percent Weight of Co
+rho1=15.77;...........//Density of WC in g/cm^3
+rho2=4.94;............//Density of TiC in g/cm^3
+rho3=14.5;............//Density of TaC in g/cm^3
+rho4=8.90;............//Density of Co in g/cm^3
+//Calculations
+f1=(per1/rho1)/((per1/rho1)+(per2/rho2)+(per3/rho3)+(per4/rho4));.......//Volume fraction of WC
+f2=(per2/rho2)/((per1/rho1)+(per2/rho2)+(per3/rho3)+(per4/rho4));.....//Volume fraction of Tic
+f3=(per3/rho3)/((per1/rho1)+(per2/rho2)+(per3/rho3)+(per4/rho4));.....//Volume fraction of Tac
+f4=(per4/rho4)/((per1/rho1)+(per2/rho2)+(per3/rho3)+(per4/rho4));.....//Volume fraction of Co
+rho=(f1*rho1)+(f2*rho2)+(f3*rho3)+(f4*rho4);........//Density of composite in g/cm^3
+disp(rho,"Density of composite in g/cm^3:")
|