summaryrefslogtreecommitdiff
path: root/1895/CH11/EX11.2/EXAMPLE11_2.SCE
diff options
context:
space:
mode:
Diffstat (limited to '1895/CH11/EX11.2/EXAMPLE11_2.SCE')
-rwxr-xr-x1895/CH11/EX11.2/EXAMPLE11_2.SCE15
1 files changed, 15 insertions, 0 deletions
diff --git a/1895/CH11/EX11.2/EXAMPLE11_2.SCE b/1895/CH11/EX11.2/EXAMPLE11_2.SCE
new file mode 100755
index 000000000..5947283ab
--- /dev/null
+++ b/1895/CH11/EX11.2/EXAMPLE11_2.SCE
@@ -0,0 +1,15 @@
+//ANALOG AND DIGITAL COMMUNICATION
+//BY Dr.SANJAY SHARMA
+//CHAPTER 11
+//Information Theory
+clear all;
+clc;
+printf("EXAMPLE 11.2(PAGENO 488)");
+//given
+Px_i = 1/4//probability of a symbol
+
+//calculation
+Ix_i = (log(1/Px_i))/log(2)//formula for amount of information of a symbol
+
+//result
+printf("\n\ni. Amount of information = %.2f bits",Ix_i)