blob: b9519e35ee325c9ccf5af9dc30fc173a7b5b01ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clear
//Given
q=1.6*10**-19 //c
B=0.1 //T
v=5.0*10**6 //m/s
a=90 //degree
//Calculation
//
Fm=q*v*B*sin(a)
//Result
printf("\n Force on the proton is %0.1f *10**-14 N",Fm*10**14)
|