summaryrefslogtreecommitdiff
path: root/3554/CH13/EX13.5/Ex13_5.sce
blob: 9f2b4bfa7936c5d3cf5ee4542a927c0c6739b77a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Exa 13.5

clc;
clear all;

// Given data

Input=6.3; // V
Output=5.2; // V
Range= 9.5; // inches

// Solution

// 0.5 inches core displacement produces 5.2 V
// Therefore, a 0.45 inch movement produces voltage as
V1=0.45*5.2/0.5; 
// Similarly - 0.30 inches core movement produces voltage as
V2=-0.30*-5.2/(-0.5); // V
// Also -0.25 inch core movement produces voltage as
V3=-0.25*-5.2/(-0.5); // V

printf('The core movement of 0.45 inch produces voltage of %.2f V  and\n movement of -0.30 inch produces voltage of %.2f V \n' ,V1,V2);
printf(' The core movement of -0.25 inch from the centre produces voltage of %.1f V \n',V3);