summaryrefslogtreecommitdiff
path: root/182/CH9/EX9.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /182/CH9/EX9.3
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 '182/CH9/EX9.3')
-rwxr-xr-x182/CH9/EX9.3/9_3.txt6
-rwxr-xr-x182/CH9/EX9.3/example9_3.sce27
2 files changed, 33 insertions, 0 deletions
diff --git a/182/CH9/EX9.3/9_3.txt b/182/CH9/EX9.3/9_3.txt
new file mode 100755
index 000000000..5e5bde4cb
--- /dev/null
+++ b/182/CH9/EX9.3/9_3.txt
@@ -0,0 +1,6 @@
+
+3.V peak-peak of wave from A=1.20 V
+ frequency of wave form A=1666.666667 Hz
+ V peak-peak of wave from B=0.48 V
+ frequency of wave form B=1428.571429 Hz
+ phase difference=60 degree
diff --git a/182/CH9/EX9.3/example9_3.sce b/182/CH9/EX9.3/example9_3.sce
new file mode 100755
index 000000000..caadfed96
--- /dev/null
+++ b/182/CH9/EX9.3/example9_3.sce
@@ -0,0 +1,27 @@
+// to find the amplitude,frequency and the phase difference b/w two waveforms in the figure 9-20
+// example 9-3 in page 256
+clc;
+//Data Given
+x=['A' 'B'];
+V=200D-3;// volatge/division=200mV
+T=0.1D-3;//time/division=0.1ms
+one_cycle=360;// one cycle=360 degree
+Vd=[6 2.4];// vertical divisions of A and B respectively
+Hd=[6 7];// horizontal divisions of A and B respectively
+//calculation
+for n=1:2
+ Vp=Vd(n)*V;// V peak-to-peak
+ Tp=T*Hd(n);// time period
+ f=1/Tp;//frequency
+ printf("V peak-peak of wave from %c=%.2f V\n",x(n),Vp);
+ printf("frequency of wave form %c=%.0f Hz\n",x(n),f);
+end
+phase_diff=Hd(2)-Hd(1);
+phase_diff=one_cycle*phase_diff/6;// here one cycle makes 6 horizontal divisions
+printf("phase difference=%d degree",phase_diff);
+//result
+//V peak-peak of wave from A=1.20 V
+//frequency of wave form A=1667 Hz
+//V peak-peak of wave from B=0.48 V
+//frequency of wave form B=1429 Hz
+//phase difference=60 degree