From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1544/CH1/EX1.18/Ch01Ex18.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 1544/CH1/EX1.18/Ch01Ex18.sce (limited to '1544/CH1/EX1.18/Ch01Ex18.sce') diff --git a/1544/CH1/EX1.18/Ch01Ex18.sce b/1544/CH1/EX1.18/Ch01Ex18.sce new file mode 100755 index 000000000..2c7dc8906 --- /dev/null +++ b/1544/CH1/EX1.18/Ch01Ex18.sce @@ -0,0 +1,13 @@ +// Scilab code Ex1.18: Pg 23 (2008) + +clc; clear; +R_1 = 250; // Resistance of field coil, ohm +Theta_1 = 15; // Initial temperature of motor, degree celcius +Theta_2 = 45; // Final temperature of motor, degree celcius +Alpha = 4.28e-03; // Temperature coefficient of resistance, per degree celcius +// Using relation, R_1/R_2 = ( 1 + Alpha*Theta_1 )/( 1 + Alpha*Theta_2 ), solving for R_2 +R_2 = R_1 * (( 1 + Alpha*Theta_2 )/( 1 + Alpha*Theta_1 )); // Resistance, ohms +printf("\nThe resistance of field coil at %2d degree celcius = %5.1f ohm",Theta_2, R_2) + +// Result +// The resistance of field coil at 45 degree celcius = 280.2 ohm -- cgit