summaryrefslogtreecommitdiff
path: root/1571/CH4/EX4.14/Chapter4_Example14.sce
blob: 8cc07571b836478b62fa7f6312f2f659655dfdd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
clear

//INPUT
v1=2.4;//velocity of first particle in km/sec
v2=2.6;//velocity of second particle in km/sec
v3=3.7;//velocity of third particle in km/sec

//CALCULATIONS
rv=((v1^2+v2^2+v3^2)/(3))^(0.5);//rms velocity of the particles in km/sec
mv=(v1+v2+v3)/(3);//mean velocity of the particles in km/sec
r=rv/mv;//ratio of the rms to mean velocity

mprintf('the ratio of rms to mean velocity is %3.3f',r)