summaryrefslogtreecommitdiff
path: root/3830/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3830/CH1/EX1.1/Ex1_1.sce')
-rw-r--r--3830/CH1/EX1.1/Ex1_1.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3830/CH1/EX1.1/Ex1_1.sce b/3830/CH1/EX1.1/Ex1_1.sce
new file mode 100644
index 000000000..e88d81754
--- /dev/null
+++ b/3830/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,24 @@
+// Exa 1.1
+
+clc;
+clear;
+
+// Given
+
+I = 10; // Current in Amp
+dI = 0.1; // Probability of error in I (Amp)
+R = 100; // Resistor value in Ohms
+dR = 2; // Probability of error in R (Ohms)
+
+
+// Solution
+
+printf('The power dissipated P = I^2*R \n');
+
+printf(' The probable error can be determined with the help of Erss(Root Sum Square) Formula, i.e Error = sqrt((dR*I^2)^2 + (2*I*R*dI)^2) \n');
+
+PE = sqrt((dR*I^2)^2 + (dI*2*I*R)^2); // Probable error
+P = I^2 * R;
+
+printf(' Error = %d W \n',round(PE));
+printf(' Power dissipated P = %d kW \n',P*10^-3);