summaryrefslogtreecommitdiff
path: root/3526/CH11/EX11.2/EX11_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3526/CH11/EX11.2/EX11_2.sce
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/CH11/EX11.2/EX11_2.sce')
-rw-r--r--3526/CH11/EX11.2/EX11_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3526/CH11/EX11.2/EX11_2.sce b/3526/CH11/EX11.2/EX11_2.sce
new file mode 100644
index 000000000..ce3e211e8
--- /dev/null
+++ b/3526/CH11/EX11.2/EX11_2.sce
@@ -0,0 +1,19 @@
+clc;funcprot(0);//EXAMPLE 11.2
+//page 319
+// Initialisation of Variables
+%Sn=2;......//Amount of Tin Dissolved in alpha solid solution
+%Sn2=10;.....//Amount of Tin Dissolved in alpha+beeta solid solution at 0 degree celsius
+m=100;........//Total mass of the Pb-Sn alloy in gm
+Pbm=90;.......//Total mass of the Pb in Pb-Sn alloy in gm
+//CALCULATIONS
+B=((%Sn2-%Sn)/(m-%Sn))*100;.......//The amount of beeta Sn that forms if a Pb-10% Sn alloy is cooled to 0 Degree celsius
+B2=100-B;......//The amount of alpha Sn that forms if a Pb-10% Sn alloy is cooled to 0 Degree celsius
+Sn1=(%Sn/100)*(B2);......//The mass of Sn in the alpha phase in g
+Sn2=%Sn2-Sn1;.....//The mass of Sn in beeta phase in g
+Pb1=B2-Sn1;....//The mass of Pb in the alpha phase in g
+Pb2=Pbm-Pb1;.........//The mass of Pb in the beeta phase in g
+disp(B,"c.Amount of beeta forms of Pb-Sn in gm:")
+disp(Sn1,"d.The mass of Sn in the alpha phase in g:")
+disp(Sn2,"d.The mass of Sn in beeta phase in g:")
+disp(Pb1,"e.The mass of Pb in the alpha phase in g:")
+disp(Pb2,"e.The mass of Pb in the beeta phase in g:")