summaryrefslogtreecommitdiff
path: root/24/CH29/EX29.5
diff options
context:
space:
mode:
Diffstat (limited to '24/CH29/EX29.5')
-rwxr-xr-x24/CH29/EX29.5/Example29_5.sce16
-rwxr-xr-x24/CH29/EX29.5/Example29_5_result.txt5
2 files changed, 21 insertions, 0 deletions
diff --git a/24/CH29/EX29.5/Example29_5.sce b/24/CH29/EX29.5/Example29_5.sce
new file mode 100755
index 000000000..7b4fd5524
--- /dev/null
+++ b/24/CH29/EX29.5/Example29_5.sce
@@ -0,0 +1,16 @@
+//Given that
+f = 12*10^6 //in Hz
+R = 53*10^-2 //in m
+q = 1.6*10^-19 //in C
+m = 3.34*10^-27 //in kg
+
+//Sample Problem 29-5a
+printf("**Sample Problem 29-5a**\n")
+B = 2*%pi*m*f/q
+printf("The magnitude of magnetic field should be %fT\n", B)
+
+//Sample Problem 29-5b
+printf("\n**Sample Problem 29-5b**\n")
+v = q*B*R/m
+K = 0.5*m*v^2
+printf("The kinetic energy of the deuteron will be %eJ", K) \ No newline at end of file
diff --git a/24/CH29/EX29.5/Example29_5_result.txt b/24/CH29/EX29.5/Example29_5_result.txt
new file mode 100755
index 000000000..522aebd0a
--- /dev/null
+++ b/24/CH29/EX29.5/Example29_5_result.txt
@@ -0,0 +1,5 @@
+**Sample Problem 29-5a**
+The magnitude of magnetic field should be 1.573938T
+
+**Sample Problem 29-5b**
+The kinetic energy of the deuteron will be 2.666800e-012J \ No newline at end of file