diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1895/CH11/EX11.2/EXAMPLE11_2.SCE | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1895/CH11/EX11.2/EXAMPLE11_2.SCE')
-rwxr-xr-x | 1895/CH11/EX11.2/EXAMPLE11_2.SCE | 15 |
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)
|