summaryrefslogtreecommitdiff
path: root/3535/CH1/EX1.3/Ex1_3.sce
blob: dbf7ebbcb996fbd47528b6d7708e8a5df0da3683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Chapter 1, Example 1.3, Page 22
clc
clear
//Estimate the mass on an atom of U 238. From Eq. (1.3)
//Calculating the approximate weight
Mapprox = 238/(6.022*10**23)
//Calculating the precise weight
M = 238.050782/(6.022142*10**23)
printf("The approximate mass on an atom of U 238 = %e g/atom",Mapprox);
printf("\n The precise mass on an atom of U 238 = %e g/atom",M);
printf("Varies by a negligible error")
//Answers may vary due to round off error