summaryrefslogtreecommitdiff
path: root/608/CH3/EX3.10/3_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH3/EX3.10/3_10.sce')
-rwxr-xr-x608/CH3/EX3.10/3_10.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/608/CH3/EX3.10/3_10.sce b/608/CH3/EX3.10/3_10.sce
new file mode 100755
index 000000000..1a7eb6c38
--- /dev/null
+++ b/608/CH3/EX3.10/3_10.sce
@@ -0,0 +1,14 @@
+//Problem 3.10: A carbon resistor has a resistance of 1 kohms at 0°C. Determine its resistance at 80°C. Assume that the temperature coefficient of resistance for carbon at 0°C is 0.0005/°C
+
+//initializing the variables:
+R0 = 1000; // in ohms
+T0 = 0; // in °C
+T1 = 80; // in °C
+a0 = -0.0005; // in per°C
+pi = 3.14;
+
+//calculation:
+R80 = R0*[1 + (a0*T1)]
+
+printf("\n\nResult\n\n")
+printf("\nresistance %.0f Ohm\n",R80) \ No newline at end of file