summaryrefslogtreecommitdiff
path: root/3554/CH21/EX21.1/Ex21_1.sce
blob: b2a2d589f07b4ebc201c650b209b373b4606367e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);