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 --- 154/CH7/EX7.1/ch7_1.sce | 53 ++++++++++++++++++++++++++++++++++++++++++++ 154/CH7/EX7.1/ch7_11.jpeg | Bin 0 -> 71406 bytes 154/CH7/EX7.13/ch7_13.sce | 24 ++++++++++++++++++++ 154/CH7/EX7.17/ch7_17.sce | 39 ++++++++++++++++++++++++++++++++ 154/CH7/EX7.2/ch7_2.sce | 12 ++++++++++ 154/CH7/EX7.2/ch7_21.jpeg | Bin 0 -> 30838 bytes 154/CH7/EX7.22/ch7_22.sce | 20 +++++++++++++++++ 154/CH7/EX7.22/ch7_221.jpeg | Bin 0 -> 23769 bytes 154/CH7/EX7.23/ch7_23.sce | 33 +++++++++++++++++++++++++++ 154/CH7/EX7.23/ch7_231.jpeg | Bin 0 -> 26638 bytes 154/CH7/EX7.23/ch7_232.jpeg | Bin 0 -> 27091 bytes 154/CH7/EX7.25/ch7_25.sce | 9 ++++++++ 154/CH7/EX7.26/ch7_26.sce | 17 ++++++++++++++ 154/CH7/EX7.3/ch7_3.sce | 12 ++++++++++ 154/CH7/EX7.3/ch7_31.jpeg | Bin 0 -> 28696 bytes 154/CH7/EX7.5/ch7_5.sce | 14 ++++++++++++ 16 files changed, 233 insertions(+) create mode 100755 154/CH7/EX7.1/ch7_1.sce create mode 100755 154/CH7/EX7.1/ch7_11.jpeg create mode 100755 154/CH7/EX7.13/ch7_13.sce create mode 100755 154/CH7/EX7.17/ch7_17.sce create mode 100755 154/CH7/EX7.2/ch7_2.sce create mode 100755 154/CH7/EX7.2/ch7_21.jpeg create mode 100755 154/CH7/EX7.22/ch7_22.sce create mode 100755 154/CH7/EX7.22/ch7_221.jpeg create mode 100755 154/CH7/EX7.23/ch7_23.sce create mode 100755 154/CH7/EX7.23/ch7_231.jpeg create mode 100755 154/CH7/EX7.23/ch7_232.jpeg create mode 100755 154/CH7/EX7.25/ch7_25.sce create mode 100755 154/CH7/EX7.26/ch7_26.sce create mode 100755 154/CH7/EX7.3/ch7_3.sce create mode 100755 154/CH7/EX7.3/ch7_31.jpeg create mode 100755 154/CH7/EX7.5/ch7_5.sce (limited to '154/CH7') diff --git a/154/CH7/EX7.1/ch7_1.sce b/154/CH7/EX7.1/ch7_1.sce new file mode 100755 index 000000000..66f5b3dd0 --- /dev/null +++ b/154/CH7/EX7.1/ch7_1.sce @@ -0,0 +1,53 @@ +clc +disp("Example 7.1") +printf("\n") + +t1=-5:0.5:8 +v1=cos (t1) +figure +a= gca (); +plot(t1,v1) +xtitle ('v1 vs t1','t1','v1 '); +a. thickness = 2; +//From the graph +printf("Time period1= %3.3fs\n Frequency 1=%0.3fHz\n",6.2832,0.159) + +t2=-4:0.5:10 +v2=sin (t2) +figure +a= gca (); +plot(t2,v2) +xtitle ('v2 vs t2','t2','v2 '); +a. thickness = 2; +//From the graph +printf("Time period 2= %3.3fs\n Frequency 2=%0.3fHz\n",6.2832,0.159) + +t3=-1:0.05:1.5 +v3=2*cos (2*%pi*t3) +figure +a= gca (); +plot(t3,v3) +xtitle ('v3 vs t3','t3','v3 '); +a. thickness = 2; +//From the graph +printf("Time period 3= %ds\n Frequency 3=%dHz\n",1,1) + +t4=-5:0.5:12 +v4=2*cos (%pi*t4/4-%pi/4) +figure +a= gca (); +plot(t4,v4) +xtitle ('v4 vs t4','t4','v4 '); +a. thickness = 2; +//From the graph +printf("Time period 4= %ds\n Frequency 4=%0.3fHz\n",8,0.125) + +t5=-1:0.005:1 +v5=5*cos (10*t5+%pi/3) +figure +a= gca (); +plot(t5,v5) +xtitle ('v5 vs t5','t5','v5 '); +a. thickness = 2; +//From the graph +printf("Time period 5= %0.3fs\n Frequency 5=%3.2fHz\n",.62832,1.59) diff --git a/154/CH7/EX7.1/ch7_11.jpeg b/154/CH7/EX7.1/ch7_11.jpeg new file mode 100755 index 000000000..7c8e20e72 Binary files /dev/null and b/154/CH7/EX7.1/ch7_11.jpeg differ diff --git a/154/CH7/EX7.13/ch7_13.sce b/154/CH7/EX7.13/ch7_13.sce new file mode 100755 index 000000000..86523df02 --- /dev/null +++ b/154/CH7/EX7.13/ch7_13.sce @@ -0,0 +1,24 @@ +clc +disp("Example 7.13") +printf("\n") + +printf("Given") +disp("Capacitance is 1uF") +C=1*10^-6; +disp("a)") +//Let k=1 which results in t=5ms +t=5*10^-3; +vac=(integrate('.004','t',0,0.003)-integrate('.002','t',0.003,0.005))/C; +printf("vac=%dV\n",vac); + +//In general +disp("At t=5k voltage follows as v=8k ms") + +disp("b)") +//As vdc=1/C*integrate(Idc*dt) +//On solving for Idc +vdc=vac +Idc=(1/((integrate('1/vac','t',0,0.005))/C))*10^3 +printf("Idc=%3.2fmA\n",Idc); +disp("Idc is equal to in the period of 5ms") + diff --git a/154/CH7/EX7.17/ch7_17.sce b/154/CH7/EX7.17/ch7_17.sce new file mode 100755 index 000000000..de2f600cf --- /dev/null +++ b/154/CH7/EX7.17/ch7_17.sce @@ -0,0 +1,39 @@ +clc +disp("Example 7.17") +printf("\n") + +printf("Given") +disp("Capacitance is 100nF") +disp("The voltage across capacitor increases linearly from 0 to 10V") +C=100*10^-9; +//From figure 7.10(a) +disp("a)") +//At t=T voltage across capacitor =10V +vc=10; +Q=C*vc; +printf("Charge across capacitor is %fC\n",Q) +disp("b)") +//The waveform shown in fig 7.10(a) can be written as +disp("0 t<0") +disp("I0=10^-6/T 0T") + + +//For T=1s; +T=1; +I0=10^-6/T; +printf("I0(1s)=%fA\n",I0); + +//For T=1ms; +T=1*10^-3; +I0=10^-6/T; +printf("I0(1ms)=%0.3fA\n",I0); + +//For T=1us; +T=1*10^-6; +I0=10^-6/T; +printf("I0(1us)=%dA",I0); + + + + diff --git a/154/CH7/EX7.2/ch7_2.sce b/154/CH7/EX7.2/ch7_2.sce new file mode 100755 index 000000000..07e77b0d6 --- /dev/null +++ b/154/CH7/EX7.2/ch7_2.sce @@ -0,0 +1,12 @@ +clc +disp("Example 7.2") +printf("\n") + +//Let wt=q +q=-8:0.5:8 +v=5*cos (q) +figure +a= gca (); +plot(q,v) +xtitle ('v vs wt','wt','v '); +a. thickness = 2; diff --git a/154/CH7/EX7.2/ch7_21.jpeg b/154/CH7/EX7.2/ch7_21.jpeg new file mode 100755 index 000000000..9a9fcd65b Binary files /dev/null and b/154/CH7/EX7.2/ch7_21.jpeg differ diff --git a/154/CH7/EX7.22/ch7_22.sce b/154/CH7/EX7.22/ch7_22.sce new file mode 100755 index 000000000..b9cc022ae --- /dev/null +++ b/154/CH7/EX7.22/ch7_22.sce @@ -0,0 +1,20 @@ +clc +disp("Example 7.22") +printf("\n") + +//The general equation of exponential decay function is given by +disp("v(t)=A*e(-t/T)+B") +//We need to solve A and B +//At t=0 we get v(0)=A+B (1) +//at t=inf we get B=1 (2) +//Solving (1) and (2) +A=4;B=1; +T=3; +t=0:0.05:10 +v=4*exp(-t/T)+1; +figure +a= gca (); +plot(t,v) +xtitle ('v vs t','t','v'); +a. thickness = 2; + diff --git a/154/CH7/EX7.22/ch7_221.jpeg b/154/CH7/EX7.22/ch7_221.jpeg new file mode 100755 index 000000000..53a8addf1 Binary files /dev/null and b/154/CH7/EX7.22/ch7_221.jpeg differ diff --git a/154/CH7/EX7.23/ch7_23.sce b/154/CH7/EX7.23/ch7_23.sce new file mode 100755 index 000000000..2109c678a --- /dev/null +++ b/154/CH7/EX7.23/ch7_23.sce @@ -0,0 +1,33 @@ +clc +disp("Example 7.23") +printf("\n") + +//Sketch voltage 'v' +t=-.001:0.00005:0 +t1=0:0.00005:.001 +T=1*10^-3; +V0=10; +v=V0*exp(t/T) +v1=V0*exp(-t1/T) +figure +a= gca (); +plot(t,v) +plot(t1,v1) +xtitle ('v vs t','t (ms)','v '); +a. thickness = 2; + +//Sketch current 'i' +t=-.001:0.00005:0 +t1=0:0.00005:.001 +T=1*10^-3; +I0=10*10^-3; +i=I0*exp(t/T) +i1=-I0*exp(-t1/T) +figure +a= gca (); +plot(t,i) +plot(t1,i1) +xtitle ('i vs wt','t (ms)','i (mA)'); +a. thickness = 2; + + diff --git a/154/CH7/EX7.23/ch7_231.jpeg b/154/CH7/EX7.23/ch7_231.jpeg new file mode 100755 index 000000000..a2488c2d2 Binary files /dev/null and b/154/CH7/EX7.23/ch7_231.jpeg differ diff --git a/154/CH7/EX7.23/ch7_232.jpeg b/154/CH7/EX7.23/ch7_232.jpeg new file mode 100755 index 000000000..ea3aa2b10 Binary files /dev/null and b/154/CH7/EX7.23/ch7_232.jpeg differ diff --git a/154/CH7/EX7.25/ch7_25.sce b/154/CH7/EX7.25/ch7_25.sce new file mode 100755 index 000000000..4d0c5dabd --- /dev/null +++ b/154/CH7/EX7.25/ch7_25.sce @@ -0,0 +1,9 @@ +clc +disp("Example 7.25") +printf("\n") + +Xavg=(2+4+11+5+7+6+9+10+3+6+8+4+1+3+5+12)/16; +//Let X=X^2eff +X=(2^2+4^2+11^2+5^2+7^2+6^2+9^2+10^2+3^2+6^2+8^2+4^2+1^2+3^2+5^2+12^2)/16 +Xeff=sqrt(X); +printf("Xavg=%d\n Xeff=%3.2f\n",Xavg,Xeff) \ No newline at end of file diff --git a/154/CH7/EX7.26/ch7_26.sce b/154/CH7/EX7.26/ch7_26.sce new file mode 100755 index 000000000..8b763778c --- /dev/null +++ b/154/CH7/EX7.26/ch7_26.sce @@ -0,0 +1,17 @@ +clc +disp("Example 7.26") +printf("\n") + +printf("Given") +disp("Period =10s") +disp("Interval is 1ms") +disp("Voltage of binary signal is either 0.5 or -0.5") +T=10; +//During 10s period there are 10000 intervals of 1ms each +//For calculating average equal number of intervals are considered at 0.5V and -0.5V +vavg=(0.5*5000-0.5*5000)/10000 +//The effective value of v(t) is +//Let V=V^2eff +V=(0.5^2*5000+(-0.5)^2*5000)/10000 +Veff=sqrt(V) +printf("vavg=%dV\nVeff=%3.2fV\n",vavg,Veff) diff --git a/154/CH7/EX7.3/ch7_3.sce b/154/CH7/EX7.3/ch7_3.sce new file mode 100755 index 000000000..122832eeb --- /dev/null +++ b/154/CH7/EX7.3/ch7_3.sce @@ -0,0 +1,12 @@ +clc +disp("Example 7.3") +printf("\n") + +t1=-10:0.05:10 +v=5*cos (%pi*t1/6+%pi/6) +figure +a= gca (); +plot(t1,v) +xtitle ('v vs %pi*t/6','%pi*t/6','v '); +a. thickness = 2; + diff --git a/154/CH7/EX7.3/ch7_31.jpeg b/154/CH7/EX7.3/ch7_31.jpeg new file mode 100755 index 000000000..f74120d20 Binary files /dev/null and b/154/CH7/EX7.3/ch7_31.jpeg differ diff --git a/154/CH7/EX7.5/ch7_5.sce b/154/CH7/EX7.5/ch7_5.sce new file mode 100755 index 000000000..515f4b915 --- /dev/null +++ b/154/CH7/EX7.5/ch7_5.sce @@ -0,0 +1,14 @@ +clc +disp("Example 7.5") +printf("\n") + +printf("Given") +disp("v(t)=cos5t+3sin(3t+45)") +//Finding the periods of individual terms +disp("Period of cos5t=2*%pi/5") +disp("Period of 3*sin(3t+45)=2*%pi/3") +//If T=2*%pi +T=2*%pi; +disp("Now T=5*T1=3*T2") +//Now the relation for T is the smallest common integral multiple of T1 and T2 +printf("Period = %3.2fs\n",T) \ No newline at end of file -- cgit