diff options
Diffstat (limited to '629/CH2/EX2.1/example2_1.sce')
-rw-r--r-- | 629/CH2/EX2.1/example2_1.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/629/CH2/EX2.1/example2_1.sce b/629/CH2/EX2.1/example2_1.sce new file mode 100644 index 000000000..321808ce2 --- /dev/null +++ b/629/CH2/EX2.1/example2_1.sce @@ -0,0 +1,9 @@ +clear
+clc
+//Example 2.1 DENSITY OF AIR
+T=4+273; //[K]
+p=101*10^3; //[N/m^2]
+R=287; //[J/kg.K]
+//Density
+rho=p/(R*T) //[kg/m^3]
+printf("\n The density of the air = %.2f kg/m^3.\n",rho)
|