summaryrefslogtreecommitdiff
path: root/608/CH3/EX3.13
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH3/EX3.13
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 '608/CH3/EX3.13')
-rwxr-xr-x608/CH3/EX3.13/3_13.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/608/CH3/EX3.13/3_13.sce b/608/CH3/EX3.13/3_13.sce
new file mode 100755
index 000000000..f6c7fc3c2
--- /dev/null
+++ b/608/CH3/EX3.13/3_13.sce
@@ -0,0 +1,14 @@
+//Problem 3.13: Some copper wire has a resistance of 200 ohms at 20°C. A current is passed through the wire and the temperature rises to 90°C. Determine the resistance of the wire at 90°C, correct to thenearest ohm, assuming that the temperature coefficient of resistance is 0.004/°C at 0°C.
+
+//initializing the variables:
+R20 = 200; // in ohms
+T0 = 20; // in °C
+T1 = 90; // in °C
+a0 = 0.004; // in per°C
+pi = 3.14;
+
+//calculation:
+R90 = R20*[1 + (a0*T1)]/[1 + (a0*T0)]
+
+printf("\n\nResult\n\n")
+printf("\nResistance %.0f ohms\n",R90) \ No newline at end of file