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 /2243/CH8/EX8.1/Ex8_1.sce | |
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 '2243/CH8/EX8.1/Ex8_1.sce')
-rwxr-xr-x | 2243/CH8/EX8.1/Ex8_1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2243/CH8/EX8.1/Ex8_1.sce b/2243/CH8/EX8.1/Ex8_1.sce new file mode 100755 index 000000000..453933bed --- /dev/null +++ b/2243/CH8/EX8.1/Ex8_1.sce @@ -0,0 +1,14 @@ +clc();
+clear;
+//Given:
+mp = 1.67*10^-27 ; // proton mass in kg
+r0 = 1.2*10^-15; // constant in m
+a0 = 0.5*10^-10; // atomic dimensions in m
+//rho_nucleus = nuclear mass/ nuclear volume
+rho_nucleus = (3*mp)/(4*%pi*r0^3); // nuclear density in kg/m^3
+//ratio = rho_nucleus/rho_atom = (a0/r0)^3
+ratio = a0^3/r0^3;
+printf("Nuclear density is %.1f x 10^17 kg/m^3 \n",rho_nucleus*10^-17);
+printf("Nuclear density is %.1f x 10^13 times Atomic density.",ratio*10^-13);
+
+
|