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 /575/CH3/EX3.1.1 | |
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 '575/CH3/EX3.1.1')
-rwxr-xr-x | 575/CH3/EX3.1.1/3_1_1.jpg | bin | 0 -> 71737 bytes | |||
-rwxr-xr-x | 575/CH3/EX3.1.1/3_1_1.sce | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/575/CH3/EX3.1.1/3_1_1.jpg b/575/CH3/EX3.1.1/3_1_1.jpg Binary files differnew file mode 100755 index 000000000..923d88754 --- /dev/null +++ b/575/CH3/EX3.1.1/3_1_1.jpg diff --git a/575/CH3/EX3.1.1/3_1_1.sce b/575/CH3/EX3.1.1/3_1_1.sce new file mode 100755 index 000000000..596b7ae7a --- /dev/null +++ b/575/CH3/EX3.1.1/3_1_1.sce @@ -0,0 +1,10 @@ +clc
+pathname=get_absolute_file_path('3_1_1.sce')
+filename=pathname+filesep()+'311.sci'
+exec(filename)
+density=13.546*62.43
+printf("density of mercury=%f lbm/ft^3",density);
+//the multiplication factor is to convert density from gm/cc to lbm/ft^3.
+volume=mass/(.454*density) ; //ft^3
+//the division by 0.454 is to convert mass in kg to lbm.
+printf(" \n The volume of %d kg of mercury is %f ft^3",mass,volume)
|