diff options
Diffstat (limited to '1301/CH10/EX10.11')
-rwxr-xr-x | 1301/CH10/EX10.11/ex10_11.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/1301/CH10/EX10.11/ex10_11.sce b/1301/CH10/EX10.11/ex10_11.sce new file mode 100755 index 000000000..7fafaf7f2 --- /dev/null +++ b/1301/CH10/EX10.11/ex10_11.sce @@ -0,0 +1,8 @@ +clc;
+d1=1.293; //density in kg/m cube
+t1=273; //temperature in Kelvin
+p2=2; //pressure in atm
+t2=373; //temperature in Kelvin
+p1=1; //pressure in atm
+d2=(d1*t1*p2)/(t2*p1); //calculating density using ideal gas law in kg/m cube
+disp(d2,"Density in kg/m cube = "); //displaying result
\ No newline at end of file |