summaryrefslogtreecommitdiff
path: root/24/CH29/EX29.1
diff options
context:
space:
mode:
Diffstat (limited to '24/CH29/EX29.1')
-rwxr-xr-x24/CH29/EX29.1/Example29_1.sce11
-rwxr-xr-x24/CH29/EX29.1/Example29_1_result.txt2
2 files changed, 13 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
diff --git a/24/CH29/EX29.1/Example29_1_result.txt b/24/CH29/EX29.1/Example29_1_result.txt
new file mode 100755
index 000000000..2085d0e04
--- /dev/null
+++ b/24/CH29/EX29.1/Example29_1_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 29-1**
+The magnitude of magnetic force acting on the proton is 6.251067e-015N \ No newline at end of file