diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1922/CH1/EX1.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1922/CH1/EX1.1')
-rwxr-xr-x | 1922/CH1/EX1.1/1_1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1922/CH1/EX1.1/1_1.sce b/1922/CH1/EX1.1/1_1.sce new file mode 100755 index 000000000..5174f70e2 --- /dev/null +++ b/1922/CH1/EX1.1/1_1.sce @@ -0,0 +1,14 @@ +clc
+clear
+//Initialization of variables
+P=2050 //kPa
+T=700 //K
+E=10 //J
+//calculations
+Pe=P*10^3 *0.3048^2 /4.4482 /144
+Te=T*1.8-460
+Ee=E*10^8 /(1055.1)
+//results
+printf("Temperature = %d F",Te)
+printf("\n Pressure = %d lbf/in^2 ",Pe)
+printf("\n Energy = %.3e Btu",Ee)
|