blob: 6baaddce2a0c3378ec83dcbc3b9f6fad4b3e6a0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear
//Given
a=5*10**-2
I=50
e=1.6*10**-19
B1=10**7
u=4*3.14*10**-7 //T/A m
//Calculation
//
B=u*I/(2*%pi*a)
F=e*B1*B
//Result
printf("\n (i) Force on electron when velocity is towards the wire %0.1f *10**-16 N",F*10**16)
printf("\n (ii) Force on electron when velocity is parallel to the wire %0.1f *10**-16 N",F*10**16)
printf("\n (iii) Force on electron when velocity is perpendicular to the wire is zero")
|