1 2 3 4 5 6 7 8 9 10 11 12 13 14
clear //Given I=4 u=10**-7 a=0.2 //m v=4*10**6 q=1.6*10**-19 //Calculation B=(u*2*I)/a F=q*v*B //Result printf("\n Force is %0.3f N", F)