summaryrefslogtreecommitdiff
path: root/3845/CH22/EX22.4/Ex22_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH22/EX22.4/Ex22_4.sce')
-rw-r--r--3845/CH22/EX22.4/Ex22_4.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3845/CH22/EX22.4/Ex22_4.sce b/3845/CH22/EX22.4/Ex22_4.sce
new file mode 100644
index 000000000..be706498d
--- /dev/null
+++ b/3845/CH22/EX22.4/Ex22_4.sce
@@ -0,0 +1,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