summaryrefslogtreecommitdiff
path: root/876/CH2/EX2.11/Ex2_11.sce
blob: 045ae14cea3859b84010fce60030fac63334b34d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//caption:Find unknown resistance,percent error and error in ohm
//Ex2.11
clc
clear
close
P=100//resistance of arm of wheatstone bridge(in ohm)
ep=0.5//error in P(in %)
Q=50//resistance of arm of wheatstone bridge(in ohm)
eq=0.5//error in Q(in %)
S=75.5//resistance of arm of wheatstone bridge(in ohm)
es=0.5//error in S(in %)
X=(P*S)/Q
disp(X,'unknown resistance(in ohm)=')
xo1=ep+es-eq
disp(xo1,'percent error when Q is taken positive(in %)=')
ex1=(xo1*X)/100
disp(ex1,'error in ohm(in ohm)=')
xo2=ep+es+eq
disp(xo2,'percent error when Q is taken negative(in %)=')
ex2=(xo2*X)/100
disp(ex2,'error in ohm(in ohm)=')