blob: 22d6af91d7fec72eeee8e781b2c94ac92190dc2a (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Example 4_4
clc;funcprot(0);
// Given data
p=20.0;// Pressure in psia
D_1=1.00;// Initial diameter in ft
D_2=10.0;// Final diameter in ft
// Solution
W_12=p*144*(%pi/6)*(D_2^3-D_1^3);// ft.lbf
printf('\nThe moving system boundary work,W_12=%1.2e ft.lbf',W_12);
|