blob: 7fa60d937267d3afe79e2fea3cdb71c2c99e6981 (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 22.1
q=20*10^-9;//Charge (C)
v=10;//Velocity (m/s)
b=5*10^-5;//Earth's magnetic field strength (T)
theta=90;//Angle between velocity and field direction (deg)
F=q*v*b*sind(theta);//Force (N)
printf('Force on the rod = %0.1e N',F)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|