summaryrefslogtreecommitdiff
path: root/569/CH4/EX4.20/4_20.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /569/CH4/EX4.20/4_20.sci
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '569/CH4/EX4.20/4_20.sci')
-rwxr-xr-x569/CH4/EX4.20/4_20.sci16
1 files changed, 16 insertions, 0 deletions
diff --git a/569/CH4/EX4.20/4_20.sci b/569/CH4/EX4.20/4_20.sci
new file mode 100755
index 000000000..f8e59d00e
--- /dev/null
+++ b/569/CH4/EX4.20/4_20.sci
@@ -0,0 +1,16 @@
+//Calculate maximum and minimum value of indicated temperature, phase shift, time lag
+clc;
+T_max=640;
+T_min=600;
+T_mean=(T_max+T_min)/2;
+Ai=T_mean-T_min;
+w=2*%pi/80;
+tc=10;
+Ao=Ai/{(1+(w*tc)^2)}^0.5;
+T_max_indicated=T_mean+Ao;
+disp(T_max_indicated,'Maximum value of indicated temperature(degree C)=')
+T_min_indicated=T_mean-Ao;
+disp(T_min_indicated,'Minimum value of indicated temperature(degree C)=')
+ph=-atan(w*tc);
+Time_lag=-ph/w;
+disp(Time_lag,'Time lag (s)') \ No newline at end of file