blob: 6c518148cb8b1b2b2b624ef031021fba5703b358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//===========================================================================
//chapter 10 example 6
clc;clear all;
//variable decalartion
p = 200.62; //resistance in Ω
q = 400; //resistance in Ω
P = 200.48; //resistance in Ω
Q = 400; //resistance in Ω
S = 100.03; //resistance in Ω
r = 700; //resistance in Ω
//calculations
X = ((P/Q)*S)+((q*r)/(p+q))*((P/Q)-(p/q));
//result
mprintf("unknown resistance = %3.4f uΩ",X);
|