summaryrefslogtreecommitdiff
path: root/3845/CH22/EX22.4/Ex22_4.sce
blob: be706498d60b5cac29ee100a91a51a98df49a0ed (plain)
1
2
3
4
5
6
7
8
9
//Example 22.4
B=1.50;//Magnetic field strength (T)
l=5*10^-2;//Length of wire (m)
I=20;//Current (A)
theta=90;//Angle between I and B (deg)
F=I*l*B*sind(theta);//Force (N)
printf('Force on the wire = %0.2f N',F)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest