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 /1238/CH8/EX8.12 | |
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 '1238/CH8/EX8.12')
-rwxr-xr-x | 1238/CH8/EX8.12/8_12.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1238/CH8/EX8.12/8_12.sce b/1238/CH8/EX8.12/8_12.sce new file mode 100755 index 000000000..7f77f76e4 --- /dev/null +++ b/1238/CH8/EX8.12/8_12.sce @@ -0,0 +1,16 @@ +//calculating required data//
+//example 12//
+clc
+//clears the command window//
+clear
+//clears//
+V=10;//high input voltage//
+//first part//
+//digital input is 101001//
+Vo=(10*2^0+0+0+10*2^3+0+10*2^5)/2^6;//output voltage//
+printf('output voltage for digital input 101001=%f volt\n',Vo);//displaying the result//
+//second part//
+//digital input is 110001//
+Vo1=(10*1+0+0+0+10*16+10*32)/64;//output voltage//
+printf('output voltage for input 110001=%f volt',Vo1);//displaying the result//
+
|