summaryrefslogtreecommitdiff
path: root/3648/CH16/EX16.2/Ex16_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH16/EX16.2/Ex16_2.sce')
-rw-r--r--3648/CH16/EX16.2/Ex16_2.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3648/CH16/EX16.2/Ex16_2.sce b/3648/CH16/EX16.2/Ex16_2.sce
new file mode 100644
index 000000000..2b0a7d4e7
--- /dev/null
+++ b/3648/CH16/EX16.2/Ex16_2.sce
@@ -0,0 +1,9 @@
+//Example 16_2
+clc();
+clear;
+//To calculate the speed of the proton
+q=1.6*10^-19 //Units in C
+vab=45 //Units in V
+m=1.67*10^-27 //Units in Kg
+va=sqrt((2*q*vab)/m) //Units in meters/sec
+printf("The speed of the proton is Vab=%.2f meters/sec",va)