From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1994/CH2/EX2.5/Example2_5.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 1994/CH2/EX2.5/Example2_5.sce (limited to '1994/CH2/EX2.5/Example2_5.sce') diff --git a/1994/CH2/EX2.5/Example2_5.sce b/1994/CH2/EX2.5/Example2_5.sce new file mode 100755 index 000000000..15d621fac --- /dev/null +++ b/1994/CH2/EX2.5/Example2_5.sce @@ -0,0 +1,12 @@ +//Chapter-2,Example2_5,pg 2_12 +n=4 +Vofs=5 +Res=Vofs/((2^n)-1) +D1=bin2dec('1000') +Vo1=Res*D1 +D2=bin2dec('1111') +Vo2=Res*D2 +printf("output voltage1\n") +printf("Vo1=%.2f V\n",Vo1) +printf("output voltage2\n") +printf("Vo2=%.2f V\n",Vo2) -- cgit