From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 884/CH1/EX1.1/Example1_1.sce | 16 ++++++++++++++++ 884/CH1/EX1.2/Example1_2.sce | 16 ++++++++++++++++ 884/CH1/EX1.3/Example1_3.sce | 32 ++++++++++++++++++++++++++++++++ 884/CH1/EX1.5/Example1_5.sce | 43 +++++++++++++++++++++++++++++++++++++++++++ 884/CH1/EX1.6/Example1_6.sce | 16 ++++++++++++++++ 884/CH1/EX1.7/Example1_7.sce | 17 +++++++++++++++++ 884/CH1/EX1.8/Example1_8.sce | 14 ++++++++++++++ 7 files changed, 154 insertions(+) create mode 100755 884/CH1/EX1.1/Example1_1.sce create mode 100755 884/CH1/EX1.2/Example1_2.sce create mode 100755 884/CH1/EX1.3/Example1_3.sce create mode 100755 884/CH1/EX1.5/Example1_5.sce create mode 100755 884/CH1/EX1.6/Example1_6.sce create mode 100755 884/CH1/EX1.7/Example1_7.sce create mode 100755 884/CH1/EX1.8/Example1_8.sce (limited to '884/CH1') diff --git a/884/CH1/EX1.1/Example1_1.sce b/884/CH1/EX1.1/Example1_1.sce new file mode 100755 index 000000000..d0393fc5a --- /dev/null +++ b/884/CH1/EX1.1/Example1_1.sce @@ -0,0 +1,16 @@ +// Computation of density from mass and volume + +clear; +clc; + +printf("\t Example 1.1\n"); + +m=301;//mass of gold, g +v=15.6;// volume of gold, cm^3 + +d=m/v;//density of gold, g/cm^3 + +printf("\t the density of gold is : %4.1f g/cm^3\n",d); + + +//End diff --git a/884/CH1/EX1.2/Example1_2.sce b/884/CH1/EX1.2/Example1_2.sce new file mode 100755 index 000000000..060fcf889 --- /dev/null +++ b/884/CH1/EX1.2/Example1_2.sce @@ -0,0 +1,16 @@ +// Computation of mass from density and volume + +clear; +clc; + +printf("\t Example 1.2\n"); + +d=13.6;//density of mercury, g/ml +v=5.50;// volume of mercury, ml + +m=d*v;//mass of mercury, g + +printf("\t the mass of mercury is : %4.1f g\n",m); + + +//End diff --git a/884/CH1/EX1.3/Example1_3.sce b/884/CH1/EX1.3/Example1_3.sce new file mode 100755 index 000000000..e660dba03 --- /dev/null +++ b/884/CH1/EX1.3/Example1_3.sce @@ -0,0 +1,32 @@ +// Conversion among temperature scales + +clear; +clc; + +printf("\t Example 1.3\n"); + +//for Solder + +C=224;//melting point of solder, C +F=C*9/5+32;//melting point of solder, F + +printf("\t the melting point of solder is : %4.0f F\n",F); + + +//for Helium + +F=-452;//boiling point of helium, F +C=(F-32)*5/9;//boiling point of helium, C + +printf("\t the boiling point of helium is : %4.0f C\n",C); + + +//for Mercury + +C=-38.9;//meltiing point of mercury, C +K=C+273.15;//meltiing point of mercury, K + +printf("\t the meltiing point of mercury is : %4.2f K\n",K); + +//End + diff --git a/884/CH1/EX1.5/Example1_5.sce b/884/CH1/EX1.5/Example1_5.sce new file mode 100755 index 000000000..b23d012f0 --- /dev/null +++ b/884/CH1/EX1.5/Example1_5.sce @@ -0,0 +1,43 @@ +// Significant figures + +clear; +clc; + +printf("\t Example 1.5\n"); + +//(a) +A=11254.1;//g +B=0.1983;//g +C=A+B;//g + +printf("\t(a) ( %5.1f + %1.4f )g = %6.1f g\n",A,B,C); + +//(b) +A=66.59;//L +B=3.113;//L +C=A-B;//L + +printf("\t(b) ( %5.2f - %1.4f )L = %6.2f L\n",A,B,C); + +//(c) +A=8.16;//m +B=5.1355; +C=A*B;//m + +printf("\t(c) %5.2f m * %1.4f = %6.1f m\n",A,B,C); + +//(d) +A=0.0154;//kg +B=88.3;//mL +C=A/B;//kg/mL + +printf("\t(d) %1.4f kg / %2.1f mL = %1.2f *10^-4 kg/mL\n",A,B,C*10^4); + +//(e) +A=2.64*10^3;//cm +B=3.27*10^2;//cm +C=A+B;//cm + +printf("\t(e) ( %1.2f *10^3 + %1.2f *10^2 )cm = %1.2f *10^3 cm\n",A*10^-3,B*10^-2,C*10^-3); + +//End diff --git a/884/CH1/EX1.6/Example1_6.sce b/884/CH1/EX1.6/Example1_6.sce new file mode 100755 index 000000000..4b11269bb --- /dev/null +++ b/884/CH1/EX1.6/Example1_6.sce @@ -0,0 +1,16 @@ +// Dimensional Analysis + +clear; +clc; + +printf("\t Example 1.6\n"); + +lb=0.0833;//pound mass, lb + +g=lb*453.6;//pound mass to gram mass, 1lb=453.6g + +mg=1000*g;//gram to milligram + +printf("\t the mass of glucose is : %1.2f *10^4 mg\n",mg*10^-4); + +//End diff --git a/884/CH1/EX1.7/Example1_7.sce b/884/CH1/EX1.7/Example1_7.sce new file mode 100755 index 000000000..9aa9a9d0b --- /dev/null +++ b/884/CH1/EX1.7/Example1_7.sce @@ -0,0 +1,17 @@ +// Dimensional Analysis + +clear; +clc; + +printf("\t Example 1.7\n"); + +L=5.2;//volume in litres + +cc=1000*L;//litre to cm^3 + +mc=cc/10^6;//cm^3 to m^3 + +printf("\t the volume of blood is : %4.1f *10^-3 m^3\n",mc*10^3); + + +//End diff --git a/884/CH1/EX1.8/Example1_8.sce b/884/CH1/EX1.8/Example1_8.sce new file mode 100755 index 000000000..b08c873a9 --- /dev/null +++ b/884/CH1/EX1.8/Example1_8.sce @@ -0,0 +1,14 @@ +// Dimensional Analysis + +clear; +clc; + +printf("\t Example 1.8\n"); + +gpcc=0.808;//density in gram per cm^3 + +kgpmc=1000*gpcc;//g/cm^3 to kg/m^3, as 1000g=1kg and 1cm=10^-2 m + +printf("\t the density of liquid nitrogen is : %3.0f kg/m^3\n",kgpmc); + +//End -- cgit