summaryrefslogtreecommitdiff
path: root/3871/CH1/EX1.2/Ex1_2.sce
blob: 86d56f056514a7558c26f9e76d8883df8c9db2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//=========================================================================================
//chapter 1 example 2

clc;
clear all;

//variable declarations
If     = 5;       //full-scale reading of instrument in A
Ra     = 0.01;    //ammeter resistance in ohm


//calculations
Pf     = ((If)^2)*(Ra);             //power sonsumption for full-scale deflection is W
n      = (If)/(Pf);             //instrument efficiency in A per watts

//result
mprintf("power sonsumption for full-scale deflection = %3.2f W",Pf);
mprintf("\ninstrument efficiency = %3.0f A per watts",n);


//================================================================================================