blob: 7a0dd425191fe8474061d484c5dba2b5034ed1f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clear
//Given
r=0.12*10**-2 //m
I=10
r1=0.08*10**-2 //m
I=10 //A
e=1.6*10**-19 //C
n=8.4*10**28
//Calculation
//
A=%pi*(r**2)
J=I/A
A1=%pi*r1**2
Vd=I/(e*n*A1)
//Result
printf("\n (i) Current density in the alluminium wire is %0.1f *10**6 A/m**2",J*10**-6)
printf("\n (ii) Drift velocity of electrons in the copper wire is %0.1f *10**-4 m/S",Vd*10**4)
|