summaryrefslogtreecommitdiff
path: root/1730/CH2/EX2.29/Exa2_29.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1730/CH2/EX2.29/Exa2_29.sce
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 '1730/CH2/EX2.29/Exa2_29.sce')
-rwxr-xr-x1730/CH2/EX2.29/Exa2_29.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1730/CH2/EX2.29/Exa2_29.sce b/1730/CH2/EX2.29/Exa2_29.sce
new file mode 100755
index 000000000..b7fc82ac7
--- /dev/null
+++ b/1730/CH2/EX2.29/Exa2_29.sce
@@ -0,0 +1,20 @@
+//Exa2.29
+clc;
+clear;
+close;
+//given data
+//Take iron as metal A and copper as metal B with respect to lead
+//For metal A:
+p_A=16.2;
+q_A=-0.02;
+//For metal B:
+p_B=2.78;
+q_B=+0.009;
+p_AB=p_A-p_B;
+q_AB=q_A-q_B;
+T2=210;//in degree C
+T1=10;// in degree C
+E=p_AB*(T2-T1)+q_AB/2*(T2^2-T1^2);
+disp("Thermo-electric emf is : "+string(E)+" micro V");
+Tn=-p_AB/q_AB;
+disp("Neutral temperature is : "+string(Tn)+" degree C"); \ No newline at end of file