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 /581/CH1/EX1.5/Example1_5.sci | |
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 '581/CH1/EX1.5/Example1_5.sci')
-rwxr-xr-x | 581/CH1/EX1.5/Example1_5.sci | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/581/CH1/EX1.5/Example1_5.sci b/581/CH1/EX1.5/Example1_5.sci new file mode 100755 index 000000000..0050ffdeb --- /dev/null +++ b/581/CH1/EX1.5/Example1_5.sci @@ -0,0 +1,14 @@ +
+clear;
+clc;
+
+printf("\t Example 1.5\n");
+x=poly([0],'x');
+T1=293; //Temperature of air around thermocouple, K
+T2=373; //Wall temperature, K
+h=75; // Average Heat Transfer Coefficient, W/(m^2*K)
+s=5.67*10^-8; // stefan Boltzman constant, W/(m^2*K^4)
+x=roots(h*(x-T1)+s*(x^4-T2^4));
+y=x(4)-273;
+printf("\t thermocouple Temperature is : %.1f C\n",y);
+//end
\ No newline at end of file |