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 /1544/CH1/EX1.19 | |
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 '1544/CH1/EX1.19')
-rwxr-xr-x | 1544/CH1/EX1.19/Ch01Ex19.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1544/CH1/EX1.19/Ch01Ex19.sce b/1544/CH1/EX1.19/Ch01Ex19.sce new file mode 100755 index 000000000..40cc0f81a --- /dev/null +++ b/1544/CH1/EX1.19/Ch01Ex19.sce @@ -0,0 +1,12 @@ +// Scilab code Ex1.19: Pg 24 (2008)
+
+clc; clear;
+R_0 = 350; // Resistance, ohms
+Theta_1 = 60; // Temperature, degree celcius
+Alpha = 4.26e-03; // Temperature coefficient, per degree celcius
+// Using relation R_1 = R_0 * ( 1 + Alpha*Theta_1 )
+R_1 = R_0 * ( 1 + Alpha*Theta_1 ); // Resistance, ohms
+printf("\nThe resistance of the wire at %2d degree celcius = %5.1f ohm",Theta_1, R_1)
+
+// Result
+// The resistance of the wire at 60 degree celcius = 439.5 ohm
|