summaryrefslogtreecommitdiff
path: root/116/CH3/EX3.4/exa3_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '116/CH3/EX3.4/exa3_4.sce')
-rwxr-xr-x116/CH3/EX3.4/exa3_4.sce44
1 files changed, 22 insertions, 22 deletions
diff --git a/116/CH3/EX3.4/exa3_4.sce b/116/CH3/EX3.4/exa3_4.sce
index eb0c422f7..def0f0f09 100755
--- a/116/CH3/EX3.4/exa3_4.sce
+++ b/116/CH3/EX3.4/exa3_4.sce
@@ -1,23 +1,23 @@
-//Caption:Program to calculate how many bits per sample can be saved by using DPCM
-
-//Example 3.4
-
-//Page 128
-
-w=800//Omega=800Hz
-
-//x(t)=A sin(2pi.wt), equation for sine wave with maximum amplitude
-
-//x'(t)=A(2pi).w.cos(2pi.wt), diff w.r.t time
-
-(2*%pi)*800*(1/8000)
-
-//0.62831*a, x'(t)max
-
-disp('savings in the bits per sample can be determined as ')
-
-log2(1/0.628)
-
-//Result
-
+
+
+//Example 3.4
+
+//Page 128
+
+w=800//Omega=800Hz
+
+//x(t)=A sin(2pi.wt), equation for sine wave with maximum amplitude
+
+//x'(t)=A(2pi).w.cos(2pi.wt), diff w.r.t time
+
+(2*%pi)*800*(1/8000)
+
+//0.62831*a, x'(t)max
+
+disp('savings in the bits per sample can be determined as ')
+
+log2(1/0.628)
+
+//Result
+
//0.67 bits \ No newline at end of file