summaryrefslogtreecommitdiff
path: root/154/CH7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /154/CH7
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '154/CH7')
-rwxr-xr-x154/CH7/EX7.1/ch7_1.sce53
-rwxr-xr-x154/CH7/EX7.1/ch7_11.jpegbin0 -> 71406 bytes
-rwxr-xr-x154/CH7/EX7.13/ch7_13.sce24
-rwxr-xr-x154/CH7/EX7.17/ch7_17.sce39
-rwxr-xr-x154/CH7/EX7.2/ch7_2.sce12
-rwxr-xr-x154/CH7/EX7.2/ch7_21.jpegbin0 -> 30838 bytes
-rwxr-xr-x154/CH7/EX7.22/ch7_22.sce20
-rwxr-xr-x154/CH7/EX7.22/ch7_221.jpegbin0 -> 23769 bytes
-rwxr-xr-x154/CH7/EX7.23/ch7_23.sce33
-rwxr-xr-x154/CH7/EX7.23/ch7_231.jpegbin0 -> 26638 bytes
-rwxr-xr-x154/CH7/EX7.23/ch7_232.jpegbin0 -> 27091 bytes
-rwxr-xr-x154/CH7/EX7.25/ch7_25.sce9
-rwxr-xr-x154/CH7/EX7.26/ch7_26.sce17
-rwxr-xr-x154/CH7/EX7.3/ch7_3.sce12
-rwxr-xr-x154/CH7/EX7.3/ch7_31.jpegbin0 -> 28696 bytes
-rwxr-xr-x154/CH7/EX7.5/ch7_5.sce14
16 files changed, 233 insertions, 0 deletions
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
--- /dev/null
+++ b/154/CH7/EX7.1/ch7_11.jpeg
Binary files 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 <i(t)> 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 0<t<T")
+disp("0 t>T")
+
+
+//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
--- /dev/null
+++ b/154/CH7/EX7.2/ch7_21.jpeg
Binary files 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
--- /dev/null
+++ b/154/CH7/EX7.22/ch7_221.jpeg
Binary files 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
--- /dev/null
+++ b/154/CH7/EX7.23/ch7_231.jpeg
Binary files 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
--- /dev/null
+++ b/154/CH7/EX7.23/ch7_232.jpeg
Binary files 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
--- /dev/null
+++ b/154/CH7/EX7.3/ch7_31.jpeg
Binary files 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