summaryrefslogtreecommitdiff
path: root/3835/CH1/EX1.4/Ex1_4.sce
blob: 7e9a00960ab889ff4a70084dc1e7488ef0f00fb8 (plain)
1
2
3
4
5
6
7
8
9
10
clear
//
p=30
i=10
v=p/i
dt=1
dq=i*dt
dw=v*dq
energy=dw/i
printf("\n energy of each coulomb of charge= %0.1f  J",energy)