diff options
Diffstat (limited to '24/CH29/EX29.1/Example29_1.sce')
-rwxr-xr-x | 24/CH29/EX29.1/Example29_1.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/24/CH29/EX29.1/Example29_1.sce b/24/CH29/EX29.1/Example29_1.sce new file mode 100755 index 000000000..ef94ea8ae --- /dev/null +++ b/24/CH29/EX29.1/Example29_1.sce @@ -0,0 +1,11 @@ +//Given that
+B = 1.2*10^-3 //in T
+e = 1.6*10^-19 //in C
+K = 5.3*10^6*e //in J
+m = 1.6*10^-27 //in kg
+
+//Sample Problem 29-1
+printf("**Sample Problem 29-1**\n")
+v = sqrt(2*K/m)
+F = e*v*B
+printf("The magnitude of magnetic force acting on the proton is %eN", F)
\ No newline at end of file |