summaryrefslogtreecommitdiff
path: root/1859/CH10/EX10.2/exa_10_2.sce
blob: 52ab14927c2de26dce2322b9fa3b53dca3c2adfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Exa 10.2
clc;
clear;
close;
// Given data
Pm=1250;// in watt
V=255;// in volt
I=4.8;// in amp
P=V*I;/// in watt
AbsoluteError= Pm-P;// in watt
disp(AbsoluteError,"Absolute Error in watt");
PerError= AbsoluteError/Pm*100;// in %
disp(PerError,"Percentage Error")