summaryrefslogtreecommitdiff
path: root/3831/CH1/EX1.2/Ex1_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3831/CH1/EX1.2/Ex1_2.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3831/CH1/EX1.2/Ex1_2.sce')
-rw-r--r--3831/CH1/EX1.2/Ex1_2.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3831/CH1/EX1.2/Ex1_2.sce b/3831/CH1/EX1.2/Ex1_2.sce
new file mode 100644
index 000000000..9295a872d
--- /dev/null
+++ b/3831/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,27 @@
+// Example 1_2
+clc;funcprot(0);
+// Given data
+T=55;// °F
+
+// Calculation
+// (a)
+T_w=0;// The freezing point of water in °N
+T_wF=32;// The freezing point of water in °F
+T_bh=12;// The temperature of the body in °N
+T_bhF=98.6;// The temperature of the body in °F
+x=T_bh*(1-((T_bhF-T)/(T_bhF-T_wF)));// The temperature in °N
+printf("\n(a)The temperature on the Newton scale,x=%1.2f °N",x);
+// (b)
+T_w=0;// The temperature in °Re
+T_wF=80;// The temperature in °Re
+T_bh=32;// The temperature in °F
+T_bhF=212;// The temperature in °F
+r=T_wF*(1-((T_bhF-T)/(T_bhF-T_bh)));// The temperature in °Re
+printf("\n(b)The temperature on the Reaumur scale,r=%2.1f °Re",r);
+// (c)
+T_w=273.15;// The temperature in K
+T_wF=373.15;// The temperature in K
+T_bh=32;// The temperature in °F
+T_bhF=212;// The temperature in °F
+z=T_wF-((T_wF-T_w)*(((T_bhF-T)/(T_bhF-T_bh))));// The temperature in K
+printf("\n(c)The Kelvin temperature,z=%3.1f K",z);