summaryrefslogtreecommitdiff
path: root/45/CH12/EX12.8/example_12_8.sce
blob: ffd31365e0e6a203298a2ee1e8995bfffe43852a (plain)
1
2
3
4
5
//Example 12.8
clc;
clear;
V0= 10*((1/2)+(1/4)+(1/32)+(1/128)); // calculating voltage when 1,2,5,7 re high 
printf("Output voltage = %f V",V0)//displayin result