From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2360/CH7/EX7.4/ex7_4.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2360/CH7/EX7.4/ex7_4.sce (limited to '2360/CH7/EX7.4/ex7_4.sce') diff --git a/2360/CH7/EX7.4/ex7_4.sce b/2360/CH7/EX7.4/ex7_4.sce new file mode 100755 index 000000000..bfbb8c830 --- /dev/null +++ b/2360/CH7/EX7.4/ex7_4.sce @@ -0,0 +1,16 @@ +// Exa 7.4 +format('v',7);clc;clear;close; +// Given data +voltsBYdiv = 2;//volts per division in V/div +Timebase = 2;//base time in ms/div +Verticaloccupancy = 3;//Vertical occupancy in cm +Vpp = voltsBYdiv*Verticaloccupancy;//peak to peak voltage in V +Vm = Vpp/2;// in V +V_RMS = Vm/sqrt(2);//r.m.s. value of the voltage in V +disp(V_RMS,"The r.m.s. value of the voltage in V is"); +Horizontaloccupancy = 2;//Horizontal occupancy in cm +timeBYdiv = 2;//time per division in mV +timeBYdiv = timeBYdiv*10^-3;// in V +T = timeBYdiv*Horizontaloccupancy;// in sec +f = 1/T;// in Hz +disp(f,"The frequency in Hz is"); -- cgit