summaryrefslogtreecommitdiff
path: root/767/CH6/EX6.7.3/Ch06Exa6_7_3.sci
diff options
context:
space:
mode:
Diffstat (limited to '767/CH6/EX6.7.3/Ch06Exa6_7_3.sci')
-rwxr-xr-x767/CH6/EX6.7.3/Ch06Exa6_7_3.sci9
1 files changed, 9 insertions, 0 deletions
diff --git a/767/CH6/EX6.7.3/Ch06Exa6_7_3.sci b/767/CH6/EX6.7.3/Ch06Exa6_7_3.sci
new file mode 100755
index 000000000..d35c9a484
--- /dev/null
+++ b/767/CH6/EX6.7.3/Ch06Exa6_7_3.sci
@@ -0,0 +1,9 @@
+// Scilab code Exa6.7.3 : To calculate the magnetic field applied to cyclotron whose frequency is given. Page 271(2011)
+q = 1.6e-019; // Charge of the proton, C
+r = 0.60; // radius of the dees, m
+m = 1.67e-027; // Mass of the proton, Kg
+f = 10^6; // Frequecy of the proton,Hz
+B = 2*%pi*m*f/q; // Magnetic field applied to cyclotron, tesla
+printf("\nMagnetic field applied to cyclotron : %6.4f tesla ", B)
+// Result
+// Magnetic field applied to cyclotron : 0.0656 tesla \ No newline at end of file