diff options
Diffstat (limited to '3554/CH21/EX21.1/Ex21_1.sce')
-rw-r--r-- | 3554/CH21/EX21.1/Ex21_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3554/CH21/EX21.1/Ex21_1.sce b/3554/CH21/EX21.1/Ex21_1.sce new file mode 100644 index 000000000..b2a2d589f --- /dev/null +++ b/3554/CH21/EX21.1/Ex21_1.sce @@ -0,0 +1,16 @@ +// Exa 21.1
+
+clc;
+clear all;
+
+// Given data
+Emax=20; //Max value of variable(mA)
+Emin=4;//Min value of variable(mA)
+Em=13;//Measured value of variable
+Eref=10;//Set(ref) point of variable(mA)
+
+// Solution
+//Ep=(Em-Eref)/(Emax-Emin)*100; // Percentage error from page no.(703)
+//Therefore
+Ep=(Em-Eref)/(Emax-Emin)*100;
+printf('The value of Ep = %.2f percent. Since Ep is positive, the measurement is above the set point \n ',Ep);
|