summaryrefslogtreecommitdiff
path: root/3850/CH32/EX32.4/Ex32_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3850/CH32/EX32.4/Ex32_4.sce')
-rw-r--r--3850/CH32/EX32.4/Ex32_4.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3850/CH32/EX32.4/Ex32_4.sce b/3850/CH32/EX32.4/Ex32_4.sce
new file mode 100644
index 000000000..f3a9b5b5d
--- /dev/null
+++ b/3850/CH32/EX32.4/Ex32_4.sce
@@ -0,0 +1,24 @@
+
+//To Calculate the Resistance and Energy
+
+//Example 32.4
+
+clear;
+
+clc;
+
+U1=400;//Thermal energy developed in resistor in Joules
+
+i1=2;//Current in Amperes
+
+t=10;//Time in seconds
+
+R=U1/(i1^2*t);//Formula for finding the resistance
+
+printf("(a)Resistance of resistor= %f ohm",R);
+
+i2=4;//New Value of Current in Amperes
+
+U=(i2)^2*R*t;//Formula for finding the thermal energy developed when the current is 4A
+
+printf("\n(b) Thermal energy developed in the Resistor= %d J",U);