blob: 6f37d7909240be33dc394e6a982796069102aad5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
//Initialization of variables
R=8.315*10^7 //ergs/deg/mol
T=273.2 //deg
M=4 //g/mol
//calculations
u2=3*T*R/M
u=sqrt(u2)
//results
printf("root mean square velocity = %.2e cm/sec",u)
|