summaryrefslogtreecommitdiff
path: root/275/CH1/EX1.1.28/Ch1_1_28.sce
blob: e7130a77ac76c95fe00737f3fd0202dc24f82804 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
disp("Example 1.28")
printf("\n")
disp("find out battery voltage")
//given
R=2.7*10^3
Vd=0.7
I=1.96*10^-3
//battery voltage
V=(I*R)+Vd
printf("battery voltage=%f volt",V)