summaryrefslogtreecommitdiff
path: root/1319/CH12/EX12.3/i_3.sce
blob: 3b37ff918a18ed7923cee3edfd1431d61797b9ed (plain)
1
2
3
4
5
6
7
8
9
10
11
// To Calculate the average voltage.
clc;
clear;

W=500;
I=40;
t=15*(10^-3);

V=W/(I*t);

disp('volts',V,'The Average volatage across the terminals of the device =')