blob: c35015cf2c75dd92b302508051404657d7437f7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
clear
//
//given
dv=20 //dv/dt
c=25*(10**-6)
//case a
i=c*dv
printf("\n i= %e A",i)
//case b
q=c*dv
printf("\n q= %e C",q)
//case c
p=dv*i
printf("\n p= %e W",p)
//case d
v=dv**2
wc=(c*v)/2
printf("\n wc= %e J",wc)
|