summaryrefslogtreecommitdiff
path: root/3622/CH9/EX9.2/Ex9_2.sce
blob: 72d87f86839f07c51c4af565662bc28eb0d8c5c8 (plain)
1
2
3
4
5
6
7
//Initialisation of variables
clc
m=9e-31//mass of electron
e=1.6e-19//charge of electron
V=5000//volts
v=sqrt(2*V*e/m)
printf('maximum speed of electron is %e metre per second \n',v)