From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 911/CH8/EX8.2.a/ex_8_2_a.sce | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 911/CH8/EX8.2.a/ex_8_2_a.sce (limited to '911/CH8/EX8.2.a/ex_8_2_a.sce') diff --git a/911/CH8/EX8.2.a/ex_8_2_a.sce b/911/CH8/EX8.2.a/ex_8_2_a.sce new file mode 100644 index 000000000..23d2fa82d --- /dev/null +++ b/911/CH8/EX8.2.a/ex_8_2_a.sce @@ -0,0 +1,58 @@ +//example 8.2 (a)// +clear +//clears the screen// +clc +//clears the variable// +close +//R =input('Enter the value of the resistance R in Kohms : ')// +//C =input('Enter the value of the Capacitance C in micro farads : ' ) ; +sp =input ('Enter the spacing between two input pulses in microseconds: ' ); +R =10; +//taking give values// +C =0.01; +t= 693* R*C; +//calculting time constant// +tt=t*10; +p =1; +len =sp*60 -1; +q =1; +for j=1: len +//plotin the graphs// +lo = sp *10; +f= modulo (j,lo); +if f ==0 then +inpu (j)=1; +else +inpu (j)=0; +end +inpu (1) =1; +o(j)=2; +end +while q