blob: da12a846b3bd3cbd1483e7819e6c6a192f4a0328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//===========================================================================
//chapter 10 example 7
clc;clear all;
//variable declaration
P = 100; //resistance in Ω
Q = 10; //resistance in Ω
S = 46; //resistance in Ω
//calculations
R = (P/Q)*S; //unknown reistance in Ω
//result
mprintf("unknown resistance = %3.2f Ω ",R);
|