summaryrefslogtreecommitdiff
path: root/226/CH2/EX2.8/example8_sce.sce
blob: 72eabf590af5bc6f81ae7f6a534d456b34a6daaf (plain)
1
2
3
4
5
6
7
8
9
10
//chapter 2
//example 2.8
//page 45
printf("\n")
printf("given")
If=50*10^-3;Vf=1.1;R1=100;
Vf1=If*R1;
disp("Vf1")
E=Vf1+Vf
printf(" new supply voltage is %3.1fV\n",E)