diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1026/CH10/EX10.2/Example10_2.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1026/CH10/EX10.2/Example10_2.sce')
-rwxr-xr-x | 1026/CH10/EX10.2/Example10_2.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/1026/CH10/EX10.2/Example10_2.sce b/1026/CH10/EX10.2/Example10_2.sce new file mode 100755 index 000000000..6260afb1a --- /dev/null +++ b/1026/CH10/EX10.2/Example10_2.sce @@ -0,0 +1,23 @@ +//chapter10,Example10_2,pg 271
+
+R=0.35
+
+n=1.38*10^7
+
+m=1.67*10^-27
+
+q=1.6*10^-19
+
+B=(2*%pi*n*m)/q
+
+E=((B^2)*(q^2)*(R^2))/(2*m)
+
+E=E/q
+
+printf("magnetic field induction\n")
+
+printf("B=%.2f wb/m2",B)
+
+printf("\nmaximum energy of proton\n")
+
+printf("E=%.2f ev",E)
\ No newline at end of file |