summaryrefslogtreecommitdiff
path: root/3507/CH15/EX15.3/Ex15_3.sce
blob: 048dc3129581a259cda4e27b2dd4d3ac290fc109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//chapter15
//example15.3
//page321

P=50 // W
R=8 // ohm

// since p=V^2/R we get
V=(P*R)^0.5
I=V/R

printf("ac output voltage = %.3f V \n",V)
printf("ac output current = %.3f A \n",I)