summaryrefslogtreecommitdiff
path: root/2795/CH3/EX3.1/Ex3_01.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2795/CH3/EX3.1/Ex3_01.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2795/CH3/EX3.1/Ex3_01.sce')
-rwxr-xr-x2795/CH3/EX3.1/Ex3_01.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2795/CH3/EX3.1/Ex3_01.sce b/2795/CH3/EX3.1/Ex3_01.sce
new file mode 100755
index 000000000..29351170b
--- /dev/null
+++ b/2795/CH3/EX3.1/Ex3_01.sce
@@ -0,0 +1,14 @@
+// Scilab Code Ex3.1: Page-87 (2013)
+clc; clear
+E = 1.2e+004; // Electric field, V/m
+B = 8.8e-004; // Magnetic field, T
+l = 0.05; // Length of the deflection plates, m
+v0 = E/B; // Initial velocity of the electron, m/s
+theta = 30; // Angular deflection of the electron, degrees
+q_ratio_m = E*tand(theta)/(B^2*l); // Specific charge of the electron, C/kg
+printf("\nThe initial velocity of the electron = %3.1e m/s", v0);
+printf("\nThe specific charge of the electron = %3.1e C/kg", q_ratio_m);
+
+// Result
+// The initial velocity of the electron = 1.4e+007 m/s
+// The specific charge of the electron = 1.8e+011 C/kg \ No newline at end of file