blob: c7d7f8f75ca819bb1cb9076855ecfc8ad09728bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//===========================================================================
//chapter 5 example 20
clc;
clear all;
//variable declaration
L = 170; //length of the wire in mm
dL = 0.2; //increase in length in mm
L1 =100; //length of the second wire in mm
//calculations
S = sqrt((L*dL)/(2)); //Sag in mm
S1 = sqrt((L1*S)/(2)); //Sag in mm
M = S1/(dL); //magnification
//result
mprintf("magnification = %3.1f",M);
|