blob: 03aa19196a78bdb29de9f37ac9907990d36f5ed7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//===========================================================================
//chapter 3 example 4
clc;
clear all;
//variable declaration
ep = 5; //percentage error
Am = 20; //measuredd value in H
//calculations
er = ep/(100); //relative error
//A = Am+dA
//dA = er*Am
A = Am*(1+er); //limiting value of inductance in H
A1 = Am*(1-er); //limiting value of inductance in H
//result
mprintf("limits of inductance =%3.2f H",A);
mprintf("\n and = %3.2f H",A1);
|