summaryrefslogtreecommitdiff
path: root/876/CH2/EX2.1/Ex2_1.sce
blob: 4bd2dc408153bfafa15add799ba9e7205088b4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//caption:Find maximum and minimum value of resistor
//Ex2.1
clc
clear
close
R=100//magnitude of resistor(in ohm)
Lmin=-5//minimum limiting error(in %)
Lmax=5//maximum limiting error(in %)
Le=(R*Lmax)/100
Rmax=R+Le
disp(Rmax,'maximum value of resistor(in ohm)=')
Rmin=R-Le
disp(Rmin,'minimum value of resistor(in ohm)=')