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 /273/CH4/EX4.1 | |
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 '273/CH4/EX4.1')
-rwxr-xr-x | 273/CH4/EX4.1/ex4_1.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/273/CH4/EX4.1/ex4_1.sce b/273/CH4/EX4.1/ex4_1.sce new file mode 100755 index 000000000..d9fa870d8 --- /dev/null +++ b/273/CH4/EX4.1/ex4_1.sce @@ -0,0 +1,20 @@ +clc;clear;
+//Example 4.1
+//Calculation of acceleration,time taken,distance covered and kinetic energy of an accelerating proton
+
+//given values
+ m=1.67*10^-27;//mass of proton in kg
+ q=1.602*10^-19;//charge of proton in Coulomb
+ v1=0;//initial velocity in m/s
+ v2=2.5*10^6;//final velocity in m/s
+ E=500;//electric field strength in V/m
+ //calculation
+ a=E*q/m;//acceleration
+disp(a,'acceleration of proton in (m/s^2) is:');
+t=v2/a;//time
+disp(t,'time(in s) taken by proton to reach the final velocity is:');
+x=a*t^2/2;//distance
+disp(x,'distance (in m)covered by proton in this time is:');
+KE=E*q*x;//kinetic energy
+disp(KE,'kinetic energy(in J) at the time is:');
+
|