summaryrefslogtreecommitdiff
path: root/3523/CH3/EX3.7.9/Ex3_9.sce
blob: 7a6cc62797696c51cea9bb57ec2d076a60d56441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 9// Ch 3
clc;
clear;
close;
// given data
d = 0.075; //density of solid atomic hydrogen in g/cm^3
N_A = 6.0224*10^23; //1g of H consists of N_A atoms
N = N_A*d; // number of atoms/cm^3
printf("no. of atoms/cm^3 %e",N)
x = 1/N;//avg volume occupied by one atom in cm^3
y = (x)^(1/3);//avg seperation between atoms in cm
printf("avg vokume occupied by one atom %e cm^3",x)
printf("avg seperation between atoms %e cm",y)