summaryrefslogtreecommitdiff
path: root/3871/CH10/EX10.4/Ex10_4.sce
blob: d1c7aef0750e65c47bb1da2075e8593480c187f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//===========================================================================
//chapter 10 example 4
clc;
clear all;

//variable declaration
S	= 0.02;		//resistance of standard resistor in Ω
Vs	= 0.98;		//voltage drop across standard resistor in V
Vx	= 0.735;		//voltage drop across resistor  under test in V

//calculations
X	= (S*Vx)/Vs;	//Resistance of resistor under test in Ω

//result
mprintf("Resistance of resistor under test= %3.3f  Ω",X);