summaryrefslogtreecommitdiff
path: root/3537/CH4/EX4.1/Ex4_1.sce
blob: 370b5da5af16707134cffad045a76a92f5f88e60 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 4_1
clc();
clear;
//To calculate the density of the germanium
n=8
a=5.62*10^-10                            //units in meters
M=710.59                     //atomic weight of Ge units in a.m.u
N=6.02*10^26                //units in kg/mol
Density=(n*M)/(a^3*N)
printf("Density of the germanium is %.0f kg/m^3",Density)