summaryrefslogtreecommitdiff
path: root/3850/CH24/EX24.1/Ex24_1.sce
blob: 24541147e06a5d1bc8b349a52fbaab36428e9485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

//To calculate the rms speed of Nitrogen 

//Example 24.1
 
clear;
 
clc;
 
p=1.0*10^5;//Pressure(in N/m^2) at STP
 
rho=1.25;//Density(in kg/m^3) of Nitrogen
 
Vrms=sqrt(3*p/rho);//rms speed of nitrogen at STP
 
printf("The rms speed of Nitrogen=%.f m/s",Vrms);