blob: 9ad1928efebc97e44120d9b2aabb36331019c71c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear
//
//case a
l=0.25
f=50
v=230
r=2
c=1/(((2*3.14*f)**2)*l)
printf("\n c= %e ",c)
//case b
i=v/r
printf("\n i= %0.1f A",i)
//case c
vl=2*3.14*f*l*i
vc=i/(c*2*3.14*f)
q=(2*3.14*f*l)/(r)
printf("\n q")
|