summaryrefslogtreecommitdiff
path: root/3830/CH1/EX4.1/Ex4_1.sce
blob: 25e2728827ba78e649274e2cc921c9296ff615df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Exa 4.1

clc;
clear;

// Given

// An oscilloscope

R = 400; // Resistance(k Ohms)
C = 0.025; // capacitance(micro Farad)
T = 0.4; // Time period of saw-tooth output waveform(msec)

// Solution

printf('  The percentage of non linearity i.e deviation in output can be given as t/(4*R*C)\n  ');
PD = (T*10^-3)/(4*R*10^3*C*10^-6) ;

printf(' Therefore, by calculation, percent deviation = %d percent \n ',PD*100);