summaryrefslogtreecommitdiff
path: root/3835/CH4/EX4.20/Ex4_20.sce
blob: 206174e7bc57d3801ed28e15c720177a98eb7ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//
r=100
c=50*10**-6
f=50
v=230
//case a
xc=-1/(314*c) //314 is omega
ir=v/r //with angle 0
ic=230/(xc) //with angle of 90 deg
i=((ir**2)+(ic**2))**0.5
printf("\n current with a lead of 57.5 is obtained as= %0.1f  A",i)