summaryrefslogtreecommitdiff
path: root/45/CH12/EX12.6/example_12_6.sce
blob: a7606bb045eaa60ccb900f2afa507b65c7968a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 12.6
clc;
clear;
I=10/(3*10^3);
printf("Current each input digital voltage must be capable of supplying is =%f mA\n",I*1000)
ful_scale_voltage = 0 ;
for i=1:5 
    op_v(1,i)= 10/2^i;
    ful_scale_voltage = ful_scale_voltage + op_v(1,i);
end
V_A=ful_scale_voltage * (2*1000)/(1000+(2*1000));
printf("\n Output voltage Va = %f V",V_A);